| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/requests/__pycache__/ |
Upload File : |
a
��Pe� � @ sr d Z ddlZddlmZ e�d�Ze�d�Ze�d�Ze�d�ZeefZ eefZ
ee
ee iZ
dd
d�Zdd
� ZdS )z�
requests._internal_utils
~~~~~~~~~~~~~~
Provides utility functions that are consumed internally by Requests
which depend on extremely few external helpers (such as compat)
� N� )�builtin_strs ^[^:\s][^:\r\n]*$z^[^:\s][^:\r\n]*$s ^\S[^\r\n]*$|^$z^\S[^\r\n]*$|^$�asciic C s t | t�r| }n
| �|�}|S )z�Given a string object, regardless of type, returns a representation of
that string in the native string type, encoding and decoding where
necessary. This assumes ASCII unless told otherwise.
)�
isinstancer �decode)�string�encoding�out� r
�</usr/lib/python3.9/site-packages/requests/_internal_utils.py�to_native_string s
r c C s8 t | t�sJ �z| �d� W dS ty2 Y dS 0 dS )z�Determine if unicode string only contains ASCII characters.
:param str u_string: unicode string to check. Must be unicode
and not Python 2 `str`.
:rtype: bool
r TFN)r �str�encode�UnicodeEncodeError)Zu_stringr
r
r �unicode_is_ascii&