$36 GRAYBYTE WORDPRESS FILE MANAGER $68

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/python3.6/site-packages/setuptools/

HOME
Current 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)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.25 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
_vendor
--
14 Aug 2025 9.24 PM
root / root
0755
command
--
14 Aug 2025 9.24 PM
root / root
0755
extern
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
5.566 KB
15 Jul 2025 4.13 PM
root / root
0644
archive_util.py
6.438 KB
15 Jul 2025 4.13 PM
root / root
0644
build_meta.py
5.538 KB
15 Jul 2025 4.13 PM
root / root
0644
config.py
17.584 KB
15 Jul 2025 4.13 PM
root / root
0644
dep_util.py
0.913 KB
15 Jul 2025 4.13 PM
root / root
0644
depends.py
5.7 KB
15 Jul 2025 4.13 PM
root / root
0644
dist.py
41.614 KB
15 Jul 2025 4.13 PM
root / root
0644
extension.py
1.688 KB
15 Jul 2025 4.13 PM
root / root
0644
glibc.py
3.072 KB
15 Jul 2025 4.13 PM
root / root
0644
glob.py
5.085 KB
15 Jul 2025 4.13 PM
root / root
0644
launch.py
0.769 KB
15 Jul 2025 4.13 PM
root / root
0644
lib2to3_ex.py
1.966 KB
15 Jul 2025 4.13 PM
root / root
0644
monkey.py
5.138 KB
15 Jul 2025 4.13 PM
root / root
0644
msvc.py
39.919 KB
15 Jul 2025 4.13 PM
root / root
0644
namespaces.py
3.124 KB
15 Jul 2025 4.13 PM
root / root
0644
package_index.py
39.375 KB
15 Jul 2025 4.13 PM
root / root
0644
pep425tags.py
10.618 KB
15 Jul 2025 4.13 PM
root / root
0644
py27compat.py
0.523 KB
15 Jul 2025 4.13 PM
root / root
0644
py31compat.py
1.164 KB
15 Jul 2025 4.13 PM
root / root
0644
py33compat.py
1.154 KB
15 Jul 2025 4.13 PM
root / root
0644
py36compat.py
2.823 KB
15 Jul 2025 4.13 PM
root / root
0644
sandbox.py
13.941 KB
15 Jul 2025 4.13 PM
root / root
0644
script (dev).tmpl
0.196 KB
15 Jul 2025 4.13 PM
root / root
0644
script.tmpl
0.135 KB
15 Jul 2025 4.13 PM
root / root
0644
site-patch.py
2.253 KB
15 Jul 2025 4.13 PM
root / root
0644
ssl_support.py
8.293 KB
15 Jul 2025 4.13 PM
root / root
0644
unicode_utils.py
0.973 KB
15 Jul 2025 4.13 PM
root / root
0644
version.py
0.141 KB
15 Jul 2025 4.13 PM
root / root
0644
wheel.py
7.596 KB
15 Jul 2025 4.13 PM
root / root
0644
windows_support.py
0.697 KB
15 Jul 2025 4.13 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF