summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-14 15:51:48 (GMT)
committerGeorg Brandl <georg@python.org>2009-10-14 15:51:48 (GMT)
commite1254d748dc008f9d9b9ffb759139c2ee49101f2 (patch)
tree70692b7b43587a2fd635c44d9e19c8266b8e41a6 /Lib/threading.py
parent14dcd43d0bf34049bc28f77bc30df5057c34b682 (diff)
downloadcpython-e1254d748dc008f9d9b9ffb759139c2ee49101f2.zip
cpython-e1254d748dc008f9d9b9ffb759139c2ee49101f2.tar.gz
cpython-e1254d748dc008f9d9b9ffb759139c2ee49101f2.tar.bz2
#7125: fix typo.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 13409db..cf20152 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -133,7 +133,7 @@ class _RLock(_Verbose):
def release(self):
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
if not count:
self.__owner = None
@@ -227,7 +227,7 @@ class _Condition(_Verbose):
def wait(self, timeout=None):
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.acquire()
self.__waiters.append(waiter)
@@ -269,7 +269,7 @@ class _Condition(_Verbose):
def notify(self, n=1):
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 = __waiters[:n]
if not waiters: