]> granicus.if.org Git - python/commitdiff
Use true booleans.
authorGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 14:23:20 +0000 (14:23 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 14:23:20 +0000 (14:23 +0000)
Lib/threading.py

index d4fcbb034b53c44032ab513deb670d9394d6bb34..3014ff16f8f0305e2215ac524f47d62b0ba78b28 100644 (file)
@@ -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: