Submit
Path:
~
/
/
lib
/
python3.8
/
site-packages
/
pip
/
_vendor
/
requests
/
__pycache__
/
File Content:
_internal_utils.cpython-38.pyc
U ��.eH � @ s. d Z ddlmZmZmZ d dd�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) � )�is_py2�builtin_str�str�asciic C s. t | t�r| }ntr | �|�}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 r �encode�decode)�string�encoding�out� r �H/usr/lib/python3.8/site-packages/pip/_vendor/requests/_internal_utils.py�to_native_string s r c C s: t | t�st�z| �d� W dS tk r4 Y dS X 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 r �AssertionErrorr �UnicodeEncodeError)Zu_stringr r r �unicode_is_ascii s r N)r )�__doc__�compatr r r r r r r r r �<module> s
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-38.opt-1.pyc
3344 bytes
0644
__init__.cpython-38.pyc
3467 bytes
0644
__version__.cpython-38.opt-1.pyc
514 bytes
0644
__version__.cpython-38.pyc
514 bytes
0644
_internal_utils.cpython-38.opt-1.pyc
1242 bytes
0644
_internal_utils.cpython-38.pyc
1284 bytes
0644
adapters.cpython-38.opt-1.pyc
16947 bytes
0644
adapters.cpython-38.pyc
16947 bytes
0644
api.cpython-38.opt-1.pyc
6471 bytes
0644
api.cpython-38.pyc
6471 bytes
0644
auth.cpython-38.opt-1.pyc
8293 bytes
0644
auth.cpython-38.pyc
8293 bytes
0644
certs.cpython-38.opt-1.pyc
597 bytes
0644
certs.cpython-38.pyc
597 bytes
0644
compat.cpython-38.opt-1.pyc
1576 bytes
0644
compat.cpython-38.pyc
1576 bytes
0644
cookies.cpython-38.opt-1.pyc
18798 bytes
0644
cookies.cpython-38.pyc
18798 bytes
0644
exceptions.cpython-38.opt-1.pyc
5208 bytes
0644
exceptions.cpython-38.pyc
5208 bytes
0644
help.cpython-38.opt-1.pyc
2694 bytes
0644
help.cpython-38.pyc
2694 bytes
0644
hooks.cpython-38.opt-1.pyc
956 bytes
0644
hooks.cpython-38.pyc
956 bytes
0644
models.cpython-38.opt-1.pyc
23892 bytes
0644
models.cpython-38.pyc
23892 bytes
0644
packages.cpython-38.opt-1.pyc
466 bytes
0644
packages.cpython-38.pyc
466 bytes
0644
sessions.cpython-38.opt-1.pyc
19506 bytes
0644
sessions.cpython-38.pyc
19506 bytes
0644
status_codes.cpython-38.opt-1.pyc
4152 bytes
0644
status_codes.cpython-38.pyc
4152 bytes
0644
structures.cpython-38.opt-1.pyc
4394 bytes
0644
structures.cpython-38.pyc
4394 bytes
0644
utils.cpython-38.opt-1.pyc
22163 bytes
0644
utils.cpython-38.pyc
22163 bytes
0644
N4ST4R_ID | Naxtarrr