Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /usr/lib/python3.8/site-packages/setuptools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python3.8/site-packages/setuptools/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]
Name
Size
Permissions
Options
__pycache__
--
drwxr-xr-x
_vendor
--
drwxr-xr-x
command
--
drwxr-xr-x
extern
--
drwxr-xr-x
__init__.py
7.112 KB
-rw-r--r--
_deprecation_warning.py
0.213 KB
-rw-r--r--
_imp.py
2.171 KB
-rw-r--r--
archive_util.py
6.438 KB
-rw-r--r--
build_meta.py
9.372 KB
-rw-r--r--
config.py
20.053 KB
-rw-r--r--
dep_util.py
0.913 KB
-rw-r--r--
depends.py
5.388 KB
-rw-r--r--
dist.py
49.13 KB
-rw-r--r--
extension.py
1.688 KB
-rw-r--r--
glibc.py
3.072 KB
-rw-r--r--
glob.py
4.965 KB
-rw-r--r--
launch.py
0.769 KB
-rw-r--r--
lib2to3_ex.py
1.966 KB
-rw-r--r--
monkey.py
5.141 KB
-rw-r--r--
msvc.py
45.655 KB
-rw-r--r--
namespaces.py
3.124 KB
-rw-r--r--
package_index.py
39.653 KB
-rw-r--r--
pep425tags.py
10.606 KB
-rw-r--r--
py27compat.py
1.461 KB
-rw-r--r--
py31compat.py
0.818 KB
-rw-r--r--
py33compat.py
1.299 KB
-rw-r--r--
py34compat.py
0.239 KB
-rw-r--r--
sandbox.py
13.941 KB
-rw-r--r--
script (dev).tmpl
0.213 KB
-rw-r--r--
script.tmpl
0.135 KB
-rw-r--r--
site-patch.py
2.248 KB
-rw-r--r--
ssl_support.py
8.294 KB
-rw-r--r--
unicode_utils.py
0.973 KB
-rw-r--r--
version.py
0.141 KB
-rw-r--r--
wheel.py
7.904 KB
-rw-r--r--
windows_support.py
0.697 KB
-rw-r--r--