diff --git a/Lib/threading.py b/Lib/threading.py index d4fcbb034b5..3014ff16f8f 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -97,7 +97,7 @@ def __repr__(self): 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 @@ def __init__(self, value=1, verbose=None): 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: