[Python-checkins] r75402 - python/trunk/Lib/threading.py
georg.brandl
python-checkins at python.org
Wed Oct 14 17:51:48 CEST 2009
Author: georg.brandl
Date: Wed Oct 14 17:51:48 2009
New Revision: 75402
Log:
#7125: fix typo.
Modified:
python/trunk/Lib/threading.py
Modified: python/trunk/Lib/threading.py
==============================================================================
--- python/trunk/Lib/threading.py (original)
+++ python/trunk/Lib/threading.py Wed Oct 14 17:51:48 2009
@@ -133,7 +133,7 @@
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 @@
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 @@
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:
More information about the Python-checkins
mailing list