Skip to content

Commit

Permalink
Merge pull request #96 from harmstyler/patch-1
Browse files Browse the repository at this point in the history
Fix spelling error
  • Loading branch information
wolph authored Jul 13, 2024
2 parents c91e04d + d73b90c commit 76ab42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portalocker/portalocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def unlock(file_: typing.IO):
LOCKER = fcntl.flock

def lock(file_: typing.Union[typing.IO, int], flags: LockFlags):
assert LOCKER is not None, 'We need a locing function in `LOCKER` '
assert LOCKER is not None, 'We need a locking function in `LOCKER` '
# Locking with NON_BLOCKING without EXCLUSIVE or SHARED enabled
# results in an error
if (flags & LockFlags.NON_BLOCKING) and not flags & (
Expand Down Expand Up @@ -147,7 +147,7 @@ def lock(file_: typing.Union[typing.IO, int], flags: LockFlags):
) from exc_value

def unlock(file_: typing.IO):
assert LOCKER is not None, 'We need a locing function in `LOCKER` '
assert LOCKER is not None, 'We need a locking function in `LOCKER` '
LOCKER(file_.fileno(), LockFlags.UNBLOCK)

else: # pragma: no cover
Expand Down

0 comments on commit 76ab42e

Please sign in to comment.