X7ROOT File Manager
Current Path:
/usr/lib/python2.7/site-packages/requests
usr
/
lib
/
python2.7
/
site-packages
/
requests
/
📁
..
📄
__init__.py
(1.83 KB)
📄
__init__.pyc
(2.49 KB)
📄
__init__.pyo
(2.49 KB)
📄
adapters.py
(16.3 KB)
📄
adapters.pyc
(15.33 KB)
📄
adapters.pyo
(15.33 KB)
📄
api.py
(5.16 KB)
📄
api.pyc
(5.89 KB)
📄
api.pyo
(5.89 KB)
📄
auth.py
(6.55 KB)
📄
auth.pyc
(7.37 KB)
📄
auth.pyo
(7.37 KB)
📄
certs.py
(649 B)
📄
certs.pyc
(897 B)
📄
certs.pyo
(897 B)
📄
compat.py
(1.5 KB)
📄
compat.pyc
(1.62 KB)
📄
compat.pyo
(1.62 KB)
📄
cookies.py
(16.4 KB)
📄
cookies.pyc
(19.8 KB)
📄
cookies.pyo
(19.8 KB)
📄
exceptions.py
(2.45 KB)
📄
exceptions.pyc
(5.15 KB)
📄
exceptions.pyo
(5.15 KB)
📄
hooks.py
(820 B)
📄
hooks.pyc
(1.03 KB)
📄
hooks.pyo
(1.03 KB)
📄
models.py
(27.46 KB)
📄
models.pyc
(24.28 KB)
📄
models.pyo
(24.28 KB)
📁
packages
📄
sessions.py
(25.01 KB)
📄
sessions.pyc
(20.04 KB)
📄
sessions.pyo
(20.04 KB)
📄
status_codes.py
(3.13 KB)
📄
status_codes.pyc
(4.36 KB)
📄
status_codes.pyo
(4.36 KB)
📄
structures.py
(2.91 KB)
📄
structures.pyc
(5.02 KB)
📄
structures.pyo
(5.02 KB)
📄
utils.py
(20.88 KB)
📄
utils.pyc
(20.08 KB)
📄
utils.pyo
(20.08 KB)
Editing: compat.py
# -*- coding: utf-8 -*- """ pythoncompat """ 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) 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 from urlparse import urlparse, urlunparse, urljoin, urlsplit, urldefrag from urllib2 import parse_http_list import cookielib from Cookie import Morsel from StringIO import StringIO try: from collections import OrderedDict # py2.7 except: from ordereddict import OrderedDict # py2.6 and lower (el6, etc.) builtin_str = str bytes = str str = unicode basestring = basestring numeric_types = (int, long, float) 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 from http import cookiejar as cookielib from http.cookies import Morsel from io import StringIO from collections import OrderedDict builtin_str = str str = str bytes = bytes basestring = (str, bytes) numeric_types = (int, float)
Upload File
Create Folder