mirror of https://github.com/python/cpython
Fix typo in example of barrier timeouts from r88102
This commit is contained in:
parent
2c3865b210
commit
4934864853
|
@ -874,7 +874,7 @@ released and a :exc:`~threading.BrokenBarrierError` exception is raised::
|
|||
ballots = conduct_election(site)
|
||||
try:
|
||||
all_polls_closed.wait(timeout = midnight - time.now())
|
||||
except BrokenBarrerError:
|
||||
except BrokenBarrierError:
|
||||
lockbox = seal_ballots(ballots)
|
||||
queue.put(lockbox)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue