(self, fileobj, mode: int = 0)
| 63 | """Simple file locking for Unix using fcntl""" |
| 64 | |
| 65 | def __init__(self, fileobj, mode: int = 0) -> None: |
| 66 | super().__init__() |
| 67 | self.fileobj = fileobj |
| 68 | self.mode = mode | fcntl.LOCK_EX |
| 69 | |
| 70 | def acquire(self) -> None: |
| 71 | try: |