HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/lib/python3.9/site-packages/netaddr/__pycache__/compat.cpython-39.pyc
a

��gp	�@s`dZddlZejddkr�ejZeZeZ	dd�Z
dd�Zdd�Zdd�Z
d	d�Zd
d�Zdd�Zdd
�Zdd�Zdd�ZeZdd�Zn�ejdd�ddgk�r
ejZeefZeZ	eZ
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd
�Zdd�Zdd�ZeZdd�Zned��zdd lmZWne�y>ddl ZYn0e!ed!��rVd"d#�Z"nej#Z"dS)$z�
Compatibility wrappers providing uniform behaviour for Python code required to
run under both Python 2.x and 3.x.

All operations emulate 2.x behaviour where applicable.
�N�cCs
t|d�S)NzUTF-8)�bytes��x�r�2/usr/lib/python3.9/site-packages/netaddr/compat.py�<lambda>�rcCst|ttd���f�S�N�)�
isinstance�str�type�encoderrrrrr	cCs
t|t�S�N)r�intrrrrrr	cCs
t|d�S)N�__call__)�hasattrrrrrrr	cCst|���Sr)�list�keysrrrrrr	cCst|���Sr)r�itemsrrrrr r	cCs|��Sr�rrrrrr"r	cGsd��j|�Sr
)r�join��argsrrr�_bytes_join$srcGstt|��Sr)r�ziprrrr�_zip'srcOstt|i|���Sr)r�range�r�kwargsrrr�_range*sr!cCst|�Sr��nextrrrr�
_iter_next/sr$�cCs
t|t�Sr)r�
basestringrrrrr<r	cCst|ttf�Sr)rr�longrrrrr>r	cCst|�Sr)�callablerrrrr@r	cCs|��SrrrrrrrBr	cCs|��Sr)rrrrrrDr	cCst|���Sr)�iterrrrrrrFr	cGs
dj|�Sr
)rrrrrrHscGst|�Sr)rrrrrrKscOst|i|��Sr)rrrrrr!NscCs|��Srr"rrrrr$SszAthis module only supports Python 2.4.x or higher (including 3.x)!)�	resources�filescCst�|��|��d�S)N�rb)�_importlib_resourcesr+�joinpath�open)�pkg�resrrr�_open_binaryasr2)$�__doc__�sys�_sys�version_info�maxsizeZ_sys_maxintrZ	_int_typer
Z	_str_typeZ_bytes_typeZ_is_strZ_is_intZ	_callableZ
_dict_keysZ_dict_itemsZ_iter_dict_keysrrr!rZ_iter_ranger$Zmaxintr'r&Zxrange�RuntimeError�	importlibr*r-�ImportErrorZimportlib_resourcesrr2Zopen_binaryrrrr�<module>sV

�