GRAYBYTE WORDPRESS FILE MANAGER4506

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/python3.8/site-packages/setuptools/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/python3.8/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)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 05 2024 23:45:22
root / root
0755
__pycache__
--
March 05 2024 23:45:21
root / root
0755
_vendor
--
March 05 2024 23:45:21
root / root
0755
command
--
March 05 2024 23:45:21
root / root
0755
extern
--
March 05 2024 23:45:21
root / root
0755
__init__.py
7.112 KB
April 21 2022 12:45:22
root / root
0644
_deprecation_warning.py
0.213 KB
April 21 2022 12:45:22
root / root
0644
_imp.py
2.171 KB
April 21 2022 12:45:22
root / root
0644
archive_util.py
6.438 KB
April 21 2022 12:45:22
root / root
0644
build_meta.py
9.372 KB
April 21 2022 12:45:22
root / root
0644
config.py
20.053 KB
April 21 2022 12:45:22
root / root
0644
dep_util.py
0.913 KB
April 21 2022 12:45:22
root / root
0644
depends.py
5.388 KB
April 21 2022 12:45:22
root / root
0644
dist.py
49.13 KB
April 21 2022 12:45:22
root / root
0644
extension.py
1.688 KB
April 21 2022 12:45:22
root / root
0644
glibc.py
3.072 KB
April 21 2022 12:45:22
root / root
0644
glob.py
4.965 KB
April 21 2022 12:45:22
root / root
0644
launch.py
0.769 KB
April 21 2022 12:45:22
root / root
0644
lib2to3_ex.py
1.966 KB
April 21 2022 12:45:22
root / root
0644
monkey.py
5.141 KB
April 21 2022 12:45:22
root / root
0644
msvc.py
45.655 KB
April 21 2022 12:45:22
root / root
0644
namespaces.py
3.124 KB
April 21 2022 12:45:22
root / root
0644
package_index.py
39.653 KB
April 21 2022 12:45:22
root / root
0644
pep425tags.py
10.606 KB
April 21 2022 12:45:22
root / root
0644
py27compat.py
1.461 KB
April 21 2022 12:45:22
root / root
0644
py31compat.py
0.818 KB
April 21 2022 12:45:22
root / root
0644
py33compat.py
1.299 KB
April 21 2022 12:45:22
root / root
0644
py34compat.py
0.239 KB
April 21 2022 12:45:22
root / root
0644
sandbox.py
13.941 KB
April 21 2022 12:45:22
root / root
0644
script (dev).tmpl
0.213 KB
April 21 2022 12:45:22
root / root
0644
script.tmpl
0.135 KB
April 21 2022 12:45:22
root / root
0644
site-patch.py
2.248 KB
April 21 2022 12:45:22
root / root
0644
ssl_support.py
8.294 KB
April 21 2022 12:45:22
root / root
0644
unicode_utils.py
0.973 KB
April 21 2022 12:45:22
root / root
0644
version.py
0.141 KB
April 21 2022 12:45:22
root / root
0644
wheel.py
7.904 KB
April 21 2022 12:45:22
root / root
0644
windows_support.py
0.697 KB
April 21 2022 12:45:22
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF