OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4730
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
cli
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
__init__.py
131 bytes
06/10/2025 09:50:50 PM
rw-r--r--
📁
__pycache__
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
autocompletion.py
6.7 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
base_command.py
8.16 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
cmdoptions.py
31.16 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
command_context.py
774 bytes
06/10/2025 09:50:50 PM
rw-r--r--
📄
index_command.py
5.59 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
main.py
2.75 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
main_parser.py
4.24 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
parser.py
10.57 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
progress_bars.py
4.33 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
req_command.py
12.63 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
spinners.py
5 KB
06/10/2025 09:50:50 PM
rw-r--r--
📄
status_codes.py
116 bytes
06/10/2025 09:50:50 PM
rw-r--r--
Editing: command_context.py
Close
from contextlib import ExitStack, contextmanager from typing import ContextManager, Generator, TypeVar _T = TypeVar("_T", covariant=True) class CommandContextMixIn: def __init__(self) -> None: super().__init__() self._in_main_context = False self._main_context = ExitStack() @contextmanager def main_context(self) -> Generator[None, None, 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: ContextManager[_T]) -> _T: assert self._in_main_context return self._main_context.enter_context(context_provider)