X7ROOT File Manager
Current Path:
/lib/python2.7/site-packages/pip/_vendor/distlib/_backport
lib
/
python2.7
/
site-packages
/
pip
/
_vendor
/
distlib
/
_backport
/
??
..
??
__init__.py
(274 B)
??
__init__.pyc
(451 B)
??
__init__.pyo
(451 B)
??
misc.py
(971 B)
??
misc.pyc
(1.39 KB)
??
misc.pyo
(1.39 KB)
??
shutil.py
(25.05 KB)
??
shutil.pyc
(25.83 KB)
??
shutil.pyo
(25.83 KB)
??
sysconfig.cfg
(2.56 KB)
??
sysconfig.py
(26.32 KB)
??
sysconfig.pyc
(20.31 KB)
??
sysconfig.pyo
(20.25 KB)
??
tarfile.py
(90.46 KB)
??
tarfile.pyc
(77.82 KB)
??
tarfile.pyo
(77.82 KB)
Editing: misc.py
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Backports for individual classes and functions.""" import os import sys __all__ = ['cache_from_source', 'callable', 'fsencode'] try: from imp import cache_from_source except ImportError: def cache_from_source(py_file, debug=__debug__): ext = debug and 'c' or 'o' return py_file + ext try: callable = callable except NameError: from collections import Callable def callable(obj): return isinstance(obj, Callable) try: fsencode = os.fsencode except AttributeError: def fsencode(filename): if isinstance(filename, bytes): return filename elif isinstance(filename, str): return filename.encode(sys.getfilesystemencoding()) else: raise TypeError("expect bytes or str, not %s" % type(filename).__name__)
Upload File
Create Folder