SILENT KILLERPanel

Current Path: > > lib > python3.6 > site-packages > setuptools > >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/python3.6/site-packages/setuptools//

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
_vendor Directory - -
command Directory - -
extern Directory - -
__init__.py File 5700 bytes July 15 2025 09:13:40.
archive_util.py File 6592 bytes July 15 2025 09:13:40.
build_meta.py File 5671 bytes July 15 2025 09:13:40.
config.py File 18006 bytes July 15 2025 09:13:40.
dep_util.py File 935 bytes July 15 2025 09:13:40.
depends.py File 5837 bytes July 15 2025 09:13:40.
dist.py File 42613 bytes July 15 2025 09:13:40.
extension.py File 1729 bytes July 15 2025 09:13:40.
glibc.py File 3146 bytes July 15 2025 09:13:40.
glob.py File 5207 bytes July 15 2025 09:13:40.
launch.py File 787 bytes July 15 2025 09:13:40.
lib2to3_ex.py File 2013 bytes July 15 2025 09:13:40.
monkey.py File 5261 bytes July 15 2025 09:13:40.
msvc.py File 40877 bytes July 15 2025 09:13:40.
namespaces.py File 3199 bytes July 15 2025 09:13:40.
package_index.py File 40320 bytes July 15 2025 09:13:40.
pep425tags.py File 10873 bytes July 15 2025 09:13:40.
py27compat.py File 536 bytes July 15 2025 09:13:40.
py31compat.py File 1192 bytes July 15 2025 09:13:40.
py33compat.py File 1182 bytes July 15 2025 09:13:40.
py36compat.py File 2891 bytes July 15 2025 09:13:40.
sandbox.py File 14276 bytes July 15 2025 09:13:40.
script (dev).tmpl File 201 bytes July 15 2025 09:13:40.
script.tmpl File 138 bytes July 15 2025 09:13:40.
site-patch.py File 2307 bytes July 15 2025 09:13:40.
ssl_support.py File 8492 bytes July 15 2025 09:13:40.
unicode_utils.py File 996 bytes July 15 2025 09:13:40.
version.py File 144 bytes July 15 2025 09:13:40.
wheel.py File 7778 bytes July 15 2025 09:13:40.
windows_support.py File 714 bytes July 15 2025 09:13:40.

Reading File: //lib/python3.6/site-packages/setuptools///lib2to3_ex.py

"""
Customized Mixin2to3 support:

 - adds support for converting doctests


This module raises an ImportError on Python 2.
"""

from distutils.util import Mixin2to3 as _Mixin2to3
from distutils import log
from lib2to3.refactor import RefactoringTool, get_fixers_from_package

import setuptools


class DistutilsRefactoringTool(RefactoringTool):
    def log_error(self, msg, *args, **kw):
        log.error(msg, *args)

    def log_message(self, msg, *args):
        log.info(msg, *args)

    def log_debug(self, msg, *args):
        log.debug(msg, *args)


class Mixin2to3(_Mixin2to3):
    def run_2to3(self, files, doctests=False):
        # See of the distribution option has been set, otherwise check the
        # setuptools default.
        if self.distribution.use_2to3 is not True:
            return
        if not files:
            return
        log.info("Fixing " + " ".join(files))
        self.__build_fixer_names()
        self.__exclude_fixers()
        if doctests:
            if setuptools.run_2to3_on_doctests:
                r = DistutilsRefactoringTool(self.fixer_names)
                r.refactor(files, write=True, doctests_only=True)
        else:
            _Mixin2to3.run_2to3(self, files)

    def __build_fixer_names(self):
        if self.fixer_names:
            return
        self.fixer_names = []
        for p in setuptools.lib2to3_fixer_packages:
            self.fixer_names.extend(get_fixers_from_package(p))
        if self.distribution.use_2to3_fixers is not None:
            for p in self.distribution.use_2to3_fixers:
                self.fixer_names.extend(get_fixers_from_package(p))

    def __exclude_fixers(self):
        excluded_fixers = getattr(self, 'exclude_fixers', [])
        if self.distribution.use_2to3_exclude_fixers is not None:
            excluded_fixers.extend(self.distribution.use_2to3_exclude_fixers)
        for fixer_name in excluded_fixers:
            if fixer_name in self.fixer_names:
                self.fixer_names.remove(fixer_name)

SILENT KILLER Tool