(self)
| 68 | self.mode = mode | fcntl.LOCK_EX |
| 69 | |
| 70 | def acquire(self) -> None: |
| 71 | try: |
| 72 | fcntl.flock(self.fileobj, self.mode) |
| 73 | self.locked = True |
| 74 | except OSError as e: |
| 75 | if e.errno != errno.ENOLCK: |
| 76 | raise e |
| 77 | |
| 78 | def release(self) -> None: |
| 79 | self.locked = False |
nothing calls this directly
no outgoing calls
no test coverage detected