[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.150: ~ $
"""Customize logging

Defines custom logger class for the `logger.verbose(...)` method.

init_logging() must be called before any other modules that call logging.getLogger.
"""

import logging
from typing import Any, cast

# custom log level for `--verbose` output
# between DEBUG and INFO
VERBOSE = 15


class VerboseLogger(logging.Logger):
    """Custom Logger, defining a verbose log-level

    VERBOSE is between INFO and DEBUG.
    """

    def verbose(self, msg: str, *args: Any, **kwargs: Any) -> None:
        return self.log(VERBOSE, msg, *args, **kwargs)


def getLogger(name: str) -> VerboseLogger:
    """logging.getLogger, but ensures our VerboseLogger class is returned"""
    return cast(VerboseLogger, logging.getLogger(name))


def init_logging() -> None:
    """Register our VerboseLogger and VERBOSE log level.

    Should be called before any calls to getLogger(),
    i.e. in pip._internal.__init__
    """
    logging.setLoggerClass(VerboseLogger)
    logging.addLevelName(VERBOSE, "VERBOSE")

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 0 B 0644
_log.py File 1015 B 0644
appdirs.py File 1.63 KB 0644
compat.py File 1.84 KB 0644
compatibility_tags.py File 5.25 KB 0644
datetime.py File 242 B 0644
deprecation.py File 3.54 KB 0644
direct_url_helpers.py File 3.13 KB 0644
distutils_args.py File 1.22 KB 0644
egg_link.py File 2.15 KB 0644
encoding.py File 1.14 KB 0644
entrypoints.py File 1.1 KB 0644
filesystem.py File 5.75 KB 0644
filetypes.py File 716 B 0644
glibc.py File 3.04 KB 0644
hashes.py File 4.7 KB 0644
inject_securetransport.py File 795 B 0644
logging.py File 11.26 KB 0644
misc.py File 20.29 KB 0644
models.py File 1.17 KB 0644
packaging.py File 2.88 KB 0644
parallel.py File 3.12 KB 0644
pkg_resources.py File 987 B 0644
setuptools_build.py File 4.59 KB 0644
subprocess.py File 9.82 KB 0644
temp_dir.py File 7.48 KB 0644
unpacking.py File 8.7 KB 0644
urls.py File 1.72 KB 0644
virtualenv.py File 3.38 KB 0644
wheel.py File 6.02 KB 0644