summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-16 14:23:20 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-16 14:23:20 (GMT)
commit7b1c41417fb0166801bcb7bb8e9b23acdaa9009e (patch)
tree774076ed13ffd0692550a661609f492311153d5d /Lib
parent4fad4dac3018fdc51025ff6f711605746e091d44 (diff)
downloadcpython-7b1c41417fb0166801bcb7bb8e9b23acdaa9009e.zip
cpython-7b1c41417fb0166801bcb7bb8e9b23acdaa9009e.tar.gz
cpython-7b1c41417fb0166801bcb7bb8e9b23acdaa9009e.tar.bz2
Use true booleans.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/threading.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index d4fcbb0..3014ff1 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -97,7 +97,7 @@ class _RLock(_Verbose):
owner and owner.name,
self._count)
- def acquire(self, blocking=1):
+ def acquire(self, blocking=True):
me = current_thread()
if self._owner is me:
self._count = self._count + 1
@@ -289,7 +289,7 @@ class _Semaphore(_Verbose):
self._cond = Condition(Lock())
self._value = value
- def acquire(self, blocking=1):
+ def acquire(self, blocking=True):
rc = False
self._cond.acquire()
while self._value == 0: