(fh)
| 88 | |
| 89 | |
| 90 | def _release_skill_lock(fh) -> None: |
| 91 | with contextlib.suppress(OSError): |
| 92 | if fcntl is not None: |
| 93 | fcntl.flock(fh.fileno(), fcntl.LOCK_UN) |
| 94 | else: |
| 95 | fh.seek(0) |
| 96 | msvcrt.locking(fh.fileno(), msvcrt.LK_UNLCK, 1) |
| 97 | |
| 98 | |
| 99 | @contextlib.contextmanager |