$64 GRAYBYTE WORDPRESS FILE MANAGER $45

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/cli/

HOME
Current File : /opt/alt/python35/lib/python3.5/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 [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.37 PM
root / linksafe
0755
__pycache__
--
3 Mar 2024 10.37 PM
root / linksafe
0755
__init__.py
0.129 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
autocompletion.py
6.394 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
base_command.py
9.084 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
cmdoptions.py
28.107 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
command_context.py
0.952 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
main.py
2.555 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
main_parser.py
2.776 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
parser.py
9.258 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
progress_bars.py
8.907 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
req_command.py
14.777 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
spinners.py
5.38 KB
13 Nov 2023 9.22 PM
root / linksafe
0644
status_codes.py
0.152 KB
13 Nov 2023 9.22 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF