diff --git a/Lib/threading.py b/Lib/threading.py index 67d23f5a9df13e..ab4e863c141ffd 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -411,10 +411,7 @@ def notify(self, n=1, timeout=None): while waiters and n > 0: waiter = waiters[0] try: - if timeout: - waiter.release(timeout) - else: - waiter.release() + waiter.release() except RuntimeError: # gh-92530: The previous call of notify() released the lock, # but was interrupted before removing it from the queue.