(self)
| 97 | self.fileobj = -1 |
| 98 | |
| 99 | def acquire(self) -> None: |
| 100 | # create a lock file and lock it |
| 101 | self.fileobj = os.open( |
| 102 | self.filename, os.O_RDWR | os.O_CREAT | os.O_TRUNC |
| 103 | ) |
| 104 | msvcrt.locking(self.fileobj, msvcrt.LK_NBLCK, 1) |
| 105 | |
| 106 | self.locked = True |
| 107 | |
| 108 | def release(self) -> None: |
| 109 | self.locked = False |
nothing calls this directly
no outgoing calls
no test coverage detected