Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/pip/_vendor
usr
/
lib
/
python2.6
/
site-packages
/
pip
/
_vendor
/
📁
..
📄
__init__.py
(2.45 KB)
📄
__init__.pyc
(1.65 KB)
📄
__init__.pyo
(1.65 KB)
📁
_markerlib
📁
cachecontrol
📁
colorama
📁
distlib
📁
html5lib
📄
ipaddress.py
(70.4 KB)
📄
ipaddress.pyc
(69.15 KB)
📄
ipaddress.pyo
(68.99 KB)
📁
lockfile
📁
packaging
📁
pkg_resources
📁
progress
📄
re-vendor.py
(773 B)
📄
re-vendor.pyc
(1.43 KB)
📄
re-vendor.pyo
(1.43 KB)
📁
requests
📄
retrying.py
(9.74 KB)
📄
retrying.pyc
(10.05 KB)
📄
retrying.pyo
(10.05 KB)
📄
six.py
(28.97 KB)
📄
six.pyc
(30.09 KB)
📄
six.pyo
(30.09 KB)
Editing: __init__.py
""" pip._vendor is for vendoring dependencies of pip to prevent needing pip to depend on something external. Files inside of pip._vendor should be considered immutable and should only be updated to versions from upstream. """ from __future__ import absolute_import import glob import os.path import sys # Downstream redistributors which have debundled our dependencies should also # patch this value to be true. This will trigger the additional patching # to cause things like "six" to be available as pip. DEBUNDLED = False # By default, look in this directory for a bunch of .whl files which we will # add to the beginning of sys.path before attempting to import anything. This # is done to support downstream re-distributors like Debian and Fedora who # wish to create their own Wheels for our dependencies to aid in debundling. WHEEL_DIR = os.path.abspath(os.path.dirname(__file__)) # Define a small helper function to alias our vendored modules to the real ones # if the vendored ones do not exist. This idea of this was taken from # https://github.com/kennethreitz/requests/pull/2567. def vendored(modulename): vendored_name = "{0}.{1}".format(__name__, modulename) try: __import__(vendored_name, globals(), locals(), level=0) except ImportError: __import__(modulename, globals(), locals(), level=0) sys.modules[vendored_name] = sys.modules[modulename] base, head = vendored_name.rsplit(".", 1) setattr(sys.modules[base], head, sys.modules[modulename]) # If we're operating in a debundled setup, then we want to go ahead and trigger # the aliasing of our vendored libraries as well as looking for wheels to add # to our sys.path. This will cause all of this code to be a no-op typically # however downstream redistributors can enable it in a consistent way across # all platforms. if DEBUNDLED: # Actually look inside of WHEEL_DIR to find .whl files and add them to the # front of our sys.path. sys.path[:] = glob.glob(os.path.join(WHEEL_DIR, "*.whl")) + sys.path # Actually alias all of our vendored dependencies. vendored("cachecontrol") vendored("colorama") vendored("distlib") vendored("html5lib") vendored("lockfile") vendored("six") vendored("six.moves") vendored("six.moves.urllib") vendored("packaging") vendored("packaging.version") vendored("packaging.specifiers") vendored("pkg_resources") vendored("progress") vendored("retrying") vendored("requests")
Upload File
Create Folder