[ Th3_Err0r Bypassed ]




Upload:

Command:

liwaavux@216.73.216.140: ~ $
from __future__ import annotations

from typing import Any


class Timeout(TimeoutError):  # noqa: N818
    """Raised when the lock could not be acquired in *timeout* seconds."""

    def __init__(self, lock_file: str) -> None:
        super().__init__()
        self._lock_file = lock_file

    def __reduce__(self) -> str | tuple[Any, ...]:
        return self.__class__, (self._lock_file,)  # Properly pickle the exception

    def __str__(self) -> str:
        return f"The file lock '{self._lock_file}' could not be acquired."

    def __repr__(self) -> str:
        return f"{self.__class__.__name__}({self.lock_file!r})"

    @property
    def lock_file(self) -> str:
        """:return: The path of the file lock."""
        return self._lock_file


__all__ = [
    "Timeout",
]

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 1.73 KB 0644
_api.py File 14.2 KB 0644
_error.py File 787 B 0644
_soft.py File 1.67 KB 0644
_unix.py File 2.3 KB 0644
_util.py File 1.67 KB 0644
_windows.py File 2.13 KB 0644
asyncio.py File 12.16 KB 0644
py.typed File 0 B 0644
version.py File 513 B 0644