set user agent string.

This commit is contained in:
2023-05-17 14:51:19 +09:00
parent 37a4cedc4d
commit d983c452de
4 changed files with 13 additions and 3 deletions

View File

@ -20,5 +20,5 @@ class FileLock:
def unlock(file: IO[Any]) -> None:
if os.name == "nt":
msvcrt.locking(file.fileno(), msvcrt.LK_UNLCK, 1)
else:
elif os.name == "posix":
fcntl.flock(file.fileno(), fcntl.LOCK_UN)