from __future__ import annotations
class Timeout(TimeoutError):
"""Raised when the lock could not be acquired in *timeout* seconds."""
def __init__(self, lock_file: str) -> None:
#: The path of the file lock.
self.lock_file = lock_file
def __str__(self) -> str:
return f"The file lock '{self.lock_file}' could not be acquired."
__all__ = [
"Timeout",
]
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 1.22 KB | 0644 |
|
| _api.py | File | 8.15 KB | 0644 |
|
| _error.py | File | 399 B | 0644 |
|
| _soft.py | File | 1.61 KB | 0644 |
|
| _unix.py | File | 1.42 KB | 0644 |
|
| _util.py | File | 594 B | 0644 |
|
| _windows.py | File | 1.72 KB | 0644 |
|
| py.typed | File | 0 B | 0644 |
|
| version.py | File | 142 B | 0644 |
|