(file_obj: IO[str])
| 55 | |
| 56 | |
| 57 | def _unlock_file(file_obj: IO[str]) -> None: |
| 58 | if os.name == "nt": |
| 59 | import msvcrt |
| 60 | |
| 61 | msvcrt.locking(file_obj.fileno(), msvcrt.LK_UNLCK, 1) |
| 62 | else: |
| 63 | import fcntl |
| 64 | |
| 65 | fcntl.flock(file_obj.fileno(), fcntl.LOCK_UN) |
| 66 | |
| 67 | |
| 68 | @asynccontextmanager |
nothing calls this directly
no outgoing calls
no test coverage detected