[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.138.174.53: ~ $
import sys
import unittest

__all__ = ['get_config_vars', 'get_path']

try:
    # Python 2.7 or >=3.2
    from sysconfig import get_config_vars, get_path
except ImportError:
    from distutils.sysconfig import get_config_vars, get_python_lib

    def get_path(name):
        if name not in ('platlib', 'purelib'):
            raise ValueError("Name must be purelib or platlib")
        return get_python_lib(name == 'platlib')


try:
    # Python >=3.2
    from tempfile import TemporaryDirectory
except ImportError:
    import shutil
    import tempfile

    class TemporaryDirectory(object):
        """
        Very simple temporary directory context manager.
        Will try to delete afterward, but will also ignore OS and similar
        errors on deletion.
        """

        def __init__(self):
            self.name = None  # Handle mkdtemp raising an exception
            self.name = tempfile.mkdtemp()

        def __enter__(self):
            return self.name

        def __exit__(self, exctype, excvalue, exctrace):
            try:
                shutil.rmtree(self.name, True)
            except OSError:  # removal errors are not the only possible
                pass
            self.name = None


unittest_main = unittest.main

_PY31 = (3, 1) <= sys.version_info[:2] < (3, 2)
if _PY31:
    # on Python 3.1, translate testRunner==None to TextTestRunner
    # for compatibility with Python 2.6, 2.7, and 3.2+
    def unittest_main(*args, **kwargs):
        if 'testRunner' in kwargs and kwargs['testRunner'] is None:
            kwargs['testRunner'] = unittest.TextTestRunner
        return unittest.main(*args, **kwargs)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
command Folder 0755
extern Folder 0755
__init__.py File 4.92 KB 0644
archive_util.py File 6.46 KB 0644
config.py File 15.93 KB 0644
dep_util.py File 935 B 0644
depends.py File 5.7 KB 0644
dist.py File 39.36 KB 0644
extension.py File 1.69 KB 0644
glob.py File 5.08 KB 0644
launch.py File 787 B 0644
lib2to3_ex.py File 1.97 KB 0644
monkey.py File 5.66 KB 0644
msvc.py File 39.93 KB 0644
namespaces.py File 3.12 KB 0644
package_index.py File 39.03 KB 0644
py26compat.py File 679 B 0644
py27compat.py File 536 B 0644
py31compat.py File 1.61 KB 0644
py33compat.py File 998 B 0644
py36compat.py File 2.82 KB 0644
sandbox.py File 14.21 KB 0644
script (dev).tmpl File 201 B 0644
script.tmpl File 138 B 0644
site-patch.py File 2.25 KB 0644
ssl_support.py File 8.03 KB 0644
unicode_utils.py File 996 B 0644
version.py File 144 B 0644
windows_support.py File 714 B 0644