mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
#7125: fix typo.
This commit is contained in:
parent
14dcd43d0b
commit
e1254d748d
1 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,7 @@ class _RLock(_Verbose):
|
||||||
|
|
||||||
def release(self):
|
def release(self):
|
||||||
if self.__owner is not current_thread():
|
if self.__owner is not current_thread():
|
||||||
raise RuntimeError("cannot release un-aquired lock")
|
raise RuntimeError("cannot release un-acquired lock")
|
||||||
self.__count = count = self.__count - 1
|
self.__count = count = self.__count - 1
|
||||||
if not count:
|
if not count:
|
||||||
self.__owner = None
|
self.__owner = None
|
||||||
|
@ -227,7 +227,7 @@ class _Condition(_Verbose):
|
||||||
|
|
||||||
def wait(self, timeout=None):
|
def wait(self, timeout=None):
|
||||||
if not self._is_owned():
|
if not self._is_owned():
|
||||||
raise RuntimeError("cannot wait on un-aquired lock")
|
raise RuntimeError("cannot wait on un-acquired lock")
|
||||||
waiter = _allocate_lock()
|
waiter = _allocate_lock()
|
||||||
waiter.acquire()
|
waiter.acquire()
|
||||||
self.__waiters.append(waiter)
|
self.__waiters.append(waiter)
|
||||||
|
@ -269,7 +269,7 @@ class _Condition(_Verbose):
|
||||||
|
|
||||||
def notify(self, n=1):
|
def notify(self, n=1):
|
||||||
if not self._is_owned():
|
if not self._is_owned():
|
||||||
raise RuntimeError("cannot notify on un-aquired lock")
|
raise RuntimeError("cannot notify on un-acquired lock")
|
||||||
__waiters = self.__waiters
|
__waiters = self.__waiters
|
||||||
waiters = __waiters[:n]
|
waiters = __waiters[:n]
|
||||||
if not waiters:
|
if not waiters:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue