X7ROOT File Manager
Current Path:
/usr/lib/python2.7/site-packages/urllib3/util
usr
/
lib
/
python2.7
/
site-packages
/
urllib3
/
util
/
📁
..
📄
__init__.py
(486 B)
📄
__init__.pyc
(787 B)
📄
__init__.pyo
(787 B)
📄
connection.py
(3.22 KB)
📄
connection.pyc
(2.87 KB)
📄
connection.pyo
(2.87 KB)
📄
request.py
(2.04 KB)
📄
request.pyc
(2.09 KB)
📄
request.pyo
(2.09 KB)
📄
response.py
(566 B)
📄
response.pyc
(632 B)
📄
response.pyo
(632 B)
📄
retry.py
(10.21 KB)
📄
retry.pyc
(9.89 KB)
📄
retry.pyo
(9.89 KB)
📄
ssl_.py
(8.63 KB)
📄
ssl_.pyc
(7.98 KB)
📄
ssl_.pyo
(7.98 KB)
📄
timeout.py
(9.32 KB)
📄
timeout.pyc
(9.32 KB)
📄
timeout.pyo
(9.32 KB)
📄
url.py
(5.92 KB)
📄
url.pyc
(6.05 KB)
📄
url.pyo
(6.05 KB)
Editing: response.py
def is_fp_closed(obj): """ Checks whether a given file-like object is closed. :param obj: The file-like object to check. """ try: # Check via the official file-like-object way. return obj.closed except AttributeError: pass try: # Check if the object is a container for another file-like object that # gets released on exhaustion (e.g. HTTPResponse). return obj.fp is None except AttributeError: pass raise ValueError("Unable to determine whether fp is closed.")
Upload File
Create Folder