(self)
| 365 | return None |
| 366 | |
| 367 | def _release(self): |
| 368 | fd = self._lock_file_fd |
| 369 | self._lock_file_fd = None |
| 370 | msvcrt.locking(fd, msvcrt.LK_UNLCK, 1) |
| 371 | os.close(fd) |
| 372 | |
| 373 | try: |
| 374 | os.remove(self._lock_file) |
| 375 | # Probably another instance of the application |
| 376 | # that acquired the file lock. |
| 377 | except OSError: |
| 378 | pass |
| 379 | return None |
| 380 | |
| 381 | # Unix locking mechanism |
| 382 | # ~~~~~~~~~~~~~~~~~~~~~~ |