404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.15.5.211: ~ $
# -*- 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__)

Filemanager

Name Type Size Permission Actions
__init__.py File 274 B 0644
__init__.pyc File 451 B 0644
__init__.pyo File 451 B 0644
misc.py File 971 B 0644
misc.pyc File 1.39 KB 0644
misc.pyo File 1.39 KB 0644
shutil.py File 25.05 KB 0644
shutil.pyc File 25.83 KB 0644
shutil.pyo File 25.83 KB 0644
sysconfig.cfg File 2.56 KB 0644
sysconfig.py File 26.32 KB 0644
sysconfig.pyc File 20.31 KB 0644
sysconfig.pyo File 20.25 KB 0644
tarfile.py File 90.46 KB 0644
tarfile.pyc File 77.82 KB 0644
tarfile.pyo File 77.82 KB 0644