. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.133 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/__pycache__/ |
Upload File : |
�
�%i6 � � � d dl mZmZmZmZ dgZdedee fd�Zdee defd�Z deee ee ef defd �Z
d
ee dee fd�ZdS )
� )�Union�List�Tuple�Optional�
serialize_evr�intgr�returnc �� � g }| }|dk r.t |d� � \ }}|� |� � |dk �.|� dt |� � z � � |� � � |S )z�
Encode int in real-numbers segment.
See http://en.wikipedia.org/wiki/Arithmetic_coding.
@param intgr: int for coding in Float an segment [seg_begin, seg_end]
@return: list encoding segment
r � � )�divmod�append�len�reverse)r �lst�number� remainders ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.31-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/evr_utils.py�"encode_int_to_real_numbers_segmentr sx � �
�C�
�F�
�1�*�*�"�6�3�/�/��� ��
�
�9���� �1�*�*� �J�J�s�S��X�X�~�����K�K�M�M�M��J� �rpm_datac �, � g }| D ]�}t |t � � r#|� t |� � � � n�t |t � � rD|� � � r0|� t t |� � � � � � nGt |t � � r |� d� |D � � � � nt
d|� �� � �|� d� � ��d� d� |D � � � � }|S )z�
Encode List of parts of Version or Epoch or Release in real-numbers segment.
See http://en.wikipedia.org/wiki/Arithmetic_coding.
@param rpm_data: list to convert in double
@return: Converted string
c 3 �4 K � | ]}t |� � V � �d S )N)�ord)�.0�chs r � <genexpr>zevr_to_float.<locals>.<genexpr>6 s( � � � �.�.�2�s�2�w�w�.�.�.�.�.�.r z
ThisStrange: r � c � � g | ]}|d ���S )�02x� )r �ns r �
<listcomp>z evr_to_float.<locals>.<listcomp>: s � �5�5�5�A��Z�Z�5�5�5r ) �
isinstance�int�extendr �str�isdigit� NameErrorr �join)r �evr�elem�
converted_strs r �evr_to_floatr. '