(self, filename: str)
| 92 | """Simple file locking for Windows using msvcrt""" |
| 93 | |
| 94 | def __init__(self, filename: str) -> None: |
| 95 | super().__init__() |
| 96 | self.filename = f"{filename}.lock" |
| 97 | self.fileobj = -1 |
| 98 | |
| 99 | def acquire(self) -> None: |
| 100 | # create a lock file and lock it |