(original) (raw)
changeset: 77348:3baeb5e13dd2 user: Richard Oudkerk shibturn@gmail.com date: Mon Jun 04 18:59:07 2012 +0100 files: Lib/multiprocessing/synchronize.py description: Fix potential NameError in multiprocessing.Condition.wait() diff -r 9257ea91df3d -r 3baeb5e13dd2 Lib/multiprocessing/synchronize.py --- a/Lib/multiprocessing/synchronize.py Mon Jun 04 18:58:59 2012 +0100 +++ b/Lib/multiprocessing/synchronize.py Mon Jun 04 18:59:07 2012 +0100 @@ -216,7 +216,7 @@ try: # wait for notification or timeout - ret = self._wait_semaphore.acquire(True, timeout) + return self._wait_semaphore.acquire(True, timeout) finally: # indicate that this thread has woken self._woken_count.release() @@ -224,7 +224,6 @@ # reacquire lock for i in range(count): self._lock.acquire() - return ret def notify(self): assert self._lock._semlock._is_mine(), 'lock is not owned' /shibturn@gmail.com