X7ROOT File Manager
Current Path:
/usr/lib/python3.8/site-packages/setuptools
usr
/
lib
/
python3.8
/
site-packages
/
setuptools
/
ðŸ“
..
📄
__init__.py
(7.11 KB)
ðŸ“
__pycache__
📄
_deprecation_warning.py
(218 B)
📄
_imp.py
(2.17 KB)
ðŸ“
_vendor
📄
archive_util.py
(6.44 KB)
📄
build_meta.py
(9.37 KB)
ðŸ“
command
📄
config.py
(20.05 KB)
📄
dep_util.py
(935 B)
📄
depends.py
(5.39 KB)
📄
dist.py
(49.13 KB)
📄
extension.py
(1.69 KB)
ðŸ“
extern
📄
glibc.py
(3.07 KB)
📄
glob.py
(4.96 KB)
📄
launch.py
(787 B)
📄
lib2to3_ex.py
(1.97 KB)
📄
monkey.py
(5.14 KB)
📄
msvc.py
(45.66 KB)
📄
namespaces.py
(3.12 KB)
📄
package_index.py
(39.65 KB)
📄
pep425tags.py
(10.61 KB)
📄
py27compat.py
(1.46 KB)
📄
py31compat.py
(838 B)
📄
py33compat.py
(1.3 KB)
📄
py34compat.py
(245 B)
📄
sandbox.py
(13.94 KB)
📄
script (dev).tmpl
(218 B)
📄
script.tmpl
(138 B)
📄
site-patch.py
(2.25 KB)
📄
ssl_support.py
(8.29 KB)
📄
unicode_utils.py
(996 B)
📄
version.py
(144 B)
📄
wheel.py
(7.9 KB)
📄
windows_support.py
(714 B)
Editing: py27compat.py
""" Compatibility Support for Python 2.7 and earlier """ import sys import platform from setuptools.extern import six def get_all_headers(message, key): """ Given an HTTPMessage, return all headers matching a given key. """ return message.get_all(key) if six.PY2: def get_all_headers(message, key): return message.getheaders(key) linux_py2_ascii = ( platform.system() == 'Linux' and six.PY2 ) rmtree_safe = str if linux_py2_ascii else lambda x: x """Workaround for http://bugs.python.org/issue24672""" try: from ._imp import find_module, PY_COMPILED, PY_FROZEN, PY_SOURCE from ._imp import get_frozen_object, get_module except ImportError: import imp from imp import PY_COMPILED, PY_FROZEN, PY_SOURCE # noqa def find_module(module, paths=None): """Just like 'imp.find_module()', but with package support""" parts = module.split('.') while parts: part = parts.pop(0) f, path, (suffix, mode, kind) = info = imp.find_module(part, paths) if kind == imp.PKG_DIRECTORY: parts = parts or ['__init__'] paths = [path] elif parts: raise ImportError("Can't find %r in %s" % (parts, module)) return info def get_frozen_object(module, paths): return imp.get_frozen_object(module) def get_module(module, paths, info): imp.load_module(module, *info) return sys.modules[module]
Upload File
Create Folder