$75 GRAYBYTE WORDPRESS FILE MANAGER $26

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

/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/cli/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/cli//command_context.py
from contextlib import contextmanager

from pip._vendor.contextlib2 import ExitStack

from pip._internal.utils.typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:
    from typing import Iterator, ContextManager, TypeVar

    _T = TypeVar('_T', covariant=True)


class CommandContextMixIn(object):
    def __init__(self):
        # type: () -> None
        super(CommandContextMixIn, self).__init__()
        self._in_main_context = False
        self._main_context = ExitStack()

    @contextmanager
    def main_context(self):
        # type: () -> Iterator[None]
        assert not self._in_main_context

        self._in_main_context = True
        try:
            with self._main_context:
                yield
        finally:
            self._in_main_context = False

    def enter_context(self, context_provider):
        # type: (ContextManager[_T]) -> _T
        assert self._in_main_context

        return self._main_context.enter_context(context_provider)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 6.49 AM
root / 996
0755
__pycache__
--
31 Aug 2024 6.49 AM
root / 996
0755
__init__.py
0.129 KB
14 Nov 2023 4.31 AM
root / 996
0644
autocompletion.py
6.394 KB
14 Nov 2023 4.31 AM
root / 996
0644
base_command.py
9.084 KB
14 Nov 2023 4.31 AM
root / 996
0644
cmdoptions.py
28.107 KB
14 Nov 2023 4.31 AM
root / 996
0644
command_context.py
0.952 KB
14 Nov 2023 4.31 AM
root / 996
0644
main.py
2.555 KB
14 Nov 2023 4.31 AM
root / 996
0644
main_parser.py
2.776 KB
14 Nov 2023 4.31 AM
root / 996
0644
parser.py
9.258 KB
14 Nov 2023 4.31 AM
root / 996
0644
progress_bars.py
8.907 KB
14 Nov 2023 4.31 AM
root / 996
0644
req_command.py
14.777 KB
14 Nov 2023 4.31 AM
root / 996
0644
spinners.py
5.38 KB
14 Nov 2023 4.31 AM
root / 996
0644
status_codes.py
0.152 KB
14 Nov 2023 4.31 AM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF