Skip to content

Commit cfb5397

Browse files
committed
fix test
1 parent 3214d98 commit cfb5397

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/threading.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,7 @@ def notify(self, n=1, timeout=None):
411411
while waiters and n > 0:
412412
waiter = waiters[0]
413413
try:
414-
if timeout:
415-
waiter.release(timeout)
416-
else:
417-
waiter.release()
414+
waiter.release()
418415
except RuntimeError:
419416
# gh-92530: The previous call of notify() released the lock,
420417
# but was interrupted before removing it from the queue.

0 commit comments

Comments
 (0)