golden hour
/opt/alt/python37/lib/python3.7/site-packages/pip/_vendor/requests
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
4.36 KB
Del
OK
__init__.pyc
4.33 KB
Del
OK
__init__.pyo
4.16 KB
Del
OK
__pycache__
-
Del
OK
__version__.py
441 B
Del
OK
__version__.pyc
605 B
Del
OK
__version__.pyo
605 B
Del
OK
_internal_utils.py
1.07 KB
Del
OK
_internal_utils.pyc
1.54 KB
Del
OK
_internal_utils.pyo
1.49 KB
Del
OK
adapters.py
21.04 KB
Del
OK
adapters.pyc
19.22 KB
Del
OK
adapters.pyo
19.22 KB
Del
OK
api.py
6.34 KB
Del
OK
api.pyc
7.26 KB
Del
OK
api.pyo
7.26 KB
Del
OK
auth.py
9.97 KB
Del
OK
auth.pyc
10.61 KB
Del
OK
auth.pyo
10.61 KB
Del
OK
certs.py
465 B
Del
OK
certs.pyc
631 B
Del
OK
certs.pyo
631 B
Del
OK
compat.py
2 KB
Del
OK
compat.pyc
1.92 KB
Del
OK
compat.pyo
1.92 KB
Del
OK
cookies.py
18 KB
Del
OK
cookies.pyc
22.85 KB
Del
OK
cookies.pyo
22.85 KB
Del
OK
exceptions.py
3.1 KB
Del
OK
exceptions.pyc
7.32 KB
Del
OK
exceptions.pyo
7.32 KB
Del
OK
help.py
3.49 KB
Del
OK
help.pyc
3.36 KB
Del
OK
help.pyo
3.36 KB
Del
OK
hooks.py
757 B
Del
OK
hooks.pyc
1.23 KB
Del
OK
hooks.pyo
1.23 KB
Del
OK
models.py
33.48 KB
Del
OK
models.pyc
29.39 KB
Del
OK
models.pyo
29.39 KB
Del
OK
packages.py
695 B
Del
OK
packages.pyc
591 B
Del
OK
packages.pyo
591 B
Del
OK
sessions.py
28.63 KB
Del
OK
sessions.pyc
22.74 KB
Del
OK
sessions.pyo
22.74 KB
Del
OK
status_codes.py
4.09 KB
Del
OK
status_codes.pyc
6.04 KB
Del
OK
status_codes.pyo
6.04 KB
Del
OK
structures.py
2.93 KB
Del
OK
structures.pyc
5.54 KB
Del
OK
structures.pyo
5.54 KB
Del
OK
utils.py
29.47 KB
Del
OK
utils.pyc
27.41 KB
Del
OK
utils.pyo
27.41 KB
Del
OK
Edit: compat.py
# -*- coding: utf-8 -*- """ requests.compat ~~~~~~~~~~~~~~~ This module handles import compatibility issues between Python 2 and Python 3. """ from pip._vendor import chardet import sys # ------- # Pythons # ------- # Syntax sugar. _ver = sys.version_info #: Python 2.x? is_py2 = (_ver[0] == 2) #: Python 3.x? is_py3 = (_ver[0] == 3) # Note: We've patched out simplejson support in pip because it prevents # upgrading simplejson on Windows. # try: # import simplejson as json # except (ImportError, SyntaxError): # # simplejson does not support Python 3.2, it throws a SyntaxError # # because of u'...' Unicode literals. import json # --------- # Specifics # --------- if is_py2: from urllib import ( quote, unquote, quote_plus, unquote_plus, urlencode, getproxies, proxy_bypass, proxy_bypass_environment, getproxies_environment) from urlparse import urlparse, urlunparse, urljoin, urlsplit, urldefrag from urllib2 import parse_http_list import cookielib from Cookie import Morsel from StringIO import StringIO # Keep OrderedDict for backwards compatibility. from collections import Callable, Mapping, MutableMapping, OrderedDict builtin_str = str bytes = str str = unicode basestring = basestring numeric_types = (int, long, float) integer_types = (int, long) elif is_py3: from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag from urllib.request import parse_http_list, getproxies, proxy_bypass, proxy_bypass_environment, getproxies_environment from http import cookiejar as cookielib from http.cookies import Morsel from io import StringIO # Keep OrderedDict for backwards compatibility. from collections import OrderedDict from collections.abc import Callable, Mapping, MutableMapping builtin_str = str str = str bytes = bytes basestring = (str, bytes) numeric_types = (int, float) integer_types = (int,)
Save