| Server IP : 65.1.209.187 / Your IP : 216.73.216.144 Web Server : nginx/1.24.0 System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64 User : ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/pycares/__pycache__/ |
Upload File : |
�
9Kf? � �N � d dl Zd� Zd� Zd� Zd� Zd� Zg d�Zy# e$ r dZY �w xY w)� Nc �~ � t | t � r| j d� S t | t � r| S t d� ��N�asciiz1only str (ascii encoding) and bytes are supported)�
isinstance�str�encode�bytes� TypeError��datas �//usr/lib/python3/dist-packages/pycares/utils.py�ascii_bytesr s6 � ��$����{�{�7�#�#��$�����
�G�
H�H� c � � t | t � r| S t | t � r | j d� S t d� �# t $ r | cY S w xY wr )r r r �decode�UnicodeDecodeErrorr
r s r
� maybe_strr sS � ��$������$��� ��;�;�w�'�'� �G�
H�H�� "� ��K� �s �A � A�
Ac �2 � | D ] }t |� dkD s� y y)N� FT)�ord)�text�cs r
�is_all_asciir s$ � �
� ���q�6�D�=��� r c � � | j d� }g }|D ]R }t |� r!|j |j d� � �/|j t j |� � �T dj |� S )N�.r � .)�splitr �appendr �idna2008�join)�name�parts�r�parts r
�parse_name_idna2008r% ! se � ��J�J�s�O�E�
�A�� ,�����
�H�H�T�[�[��)�*�
�H�H�X�_�_�T�*�+� ,�
�9�9�Q�<�r c �� � t | t � r>t | � r| j d� S t �t | � S | j d� S t | t � r| S t d� �)Nr �idnaz only str and bytes are supported)r r r r r r% r r
)r! s r
�
parse_namer( + s^ � ��$�������;�;�w�'�'���&�t�,�,��{�{�6�"�"��$�����
�6�
7�7r )r r r( ) r'