mirror of https://github.com/pypa/pip
Remove dependency of utils.logging on utils.suprocess
This commit is contained in:
parent
e9d79db6c4
commit
27fdffbab6
|
@ -9,14 +9,13 @@ import logging
|
|||
import logging.handlers
|
||||
import os
|
||||
import sys
|
||||
from logging import Filter
|
||||
from logging import Filter, getLogger
|
||||
|
||||
from pip._vendor.six import PY2
|
||||
|
||||
from pip._internal.utils.compat import WINDOWS
|
||||
from pip._internal.utils.deprecation import DEPRECATION_MSG_PREFIX
|
||||
from pip._internal.utils.misc import ensure_dir
|
||||
from pip._internal.utils.subprocess import subprocess_logger
|
||||
|
||||
try:
|
||||
import threading
|
||||
|
@ -54,6 +53,7 @@ else:
|
|||
|
||||
_log_state = threading.local()
|
||||
_log_state.indentation = 0
|
||||
subprocess_logger = getLogger('pip.subprocessor')
|
||||
|
||||
|
||||
class BrokenStdoutLoggingError(Exception):
|
||||
|
|
|
@ -11,6 +11,7 @@ from pip._vendor.six.moves import shlex_quote
|
|||
|
||||
from pip._internal.exceptions import InstallationError
|
||||
from pip._internal.utils.compat import console_to_str, str_to_display
|
||||
from pip._internal.utils.logging import subprocess_logger
|
||||
from pip._internal.utils.misc import HiddenText, path_to_display
|
||||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
|
||||
|
@ -21,7 +22,6 @@ if MYPY_CHECK_RUNNING:
|
|||
CommandArgs = List[Union[str, HiddenText]]
|
||||
|
||||
|
||||
subprocess_logger = logging.getLogger('pip.subprocessor')
|
||||
LOG_DIVIDER = '----------------------------------------'
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue