Your IP : 18.219.255.63


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/pycares/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/pycares/__pycache__/utils.cpython-311.pyc

�

S�Dg?��R�	ddlZn
#e$rdZYnwxYwd�Zd�Zd�Zd�Zd�Zgd�ZdS)�Nc��t|t��r|�d��St|t��r|St	d����N�asciiz1only str (ascii encoding) and bytes are supported)�
isinstance�str�encode�bytes�	TypeError��datas �o/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/pycares/utils.py�ascii_bytesrsL���$����$��{�{�7�#�#�#��$�������
�G�
H�
H�H�c���t|t��r|St|t��r(	|�d��S#t$r|cYSwxYwtd���r)rrr	�decode�UnicodeDecodeErrorr
rs r
�	maybe_strrsu���$��������$�����	��;�;�w�'�'�'��!�	�	�	��K�K�K�	����
�G�
H�
H�Hs�A�A�Ac�<�|D]}t|��dkrdS�dS)N�FT)�ord)�text�cs  r
�is_all_asciirs1��
�����q�6�6�D�=�=��5�5���4rc�"�|�d��}g}|D]a}t|��r)|�|�d�����:|�t	j|�����bd�|��S)N�.r�.)�splitr�appendr�idna2008�join)�name�parts�r�parts    r
�parse_name_idna2008r%!s����J�J�s�O�O�E�
�A��,�,������	,�
�H�H�T�[�[��)�)�*�*�*�*�
�H�H�X�_�T�*�*�+�+�+�+��9�9�Q�<�<�rc��t|t��rOt|��r|�d��St�t|��S|�d��St|t��r|Std���)Nr�idnaz only str and bytes are supported)rrrrrr%r	r
)r!s r
�
parse_namer(+s����$����#�����	(��;�;�w�'�'�'���&�t�,�,�,��{�{�6�"�"�"��$�������
�6�
7�
7�7r)rrr()	r'r�ImportErrorrrrr%r(�__all__�rr
�<module>r,s���������������H�H�H�����I�I�I�I�I�I�������	8�	8�	8�5�
4�
4���s���

?>