set user agent string.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user