Skip to content

Commit d73b90c

Browse files
authored
Fix spelling error
Fix a simple spelling error - s/locing/locking
1 parent c91e04d commit d73b90c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

portalocker/portalocker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def unlock(file_: typing.IO):
103103
LOCKER = fcntl.flock
104104

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

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

153153
else: # pragma: no cover

0 commit comments

Comments
 (0)