Raised when the lock could not be acquired in *timeout* seconds.
| 90 | # Exceptions |
| 91 | # ------------------------------------------------ |
| 92 | class Timeout(TimeoutError): |
| 93 | """ |
| 94 | Raised when the lock could not be acquired in *timeout* |
| 95 | seconds. |
| 96 | """ |
| 97 | |
| 98 | def __init__(self, lock_file): |
| 99 | """ |
| 100 | """ |
| 101 | #: The path of the file lock. |
| 102 | self.lock_file = lock_file |
| 103 | return None |
| 104 | |
| 105 | def __str__(self): |
| 106 | temp = "The file lock '{}' could not be acquired."\ |
| 107 | .format(self.lock_file) |
| 108 | return temp |
| 109 | |
| 110 | |
| 111 | # Classes |