mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28626)
Removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading.
Co-authored-by: Priyank <5903604+cpriyank@users.noreply.github.com>
(cherry picked from commit f1ca5d7f61)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
1e97145d2f
commit
87ecdb227f
1 changed files with 1 additions and 1 deletions
|
|
@ -608,7 +608,7 @@ def __init__(self, parties, action=None, timeout=None):
|
||||||
self._action = action
|
self._action = action
|
||||||
self._timeout = timeout
|
self._timeout = timeout
|
||||||
self._parties = parties
|
self._parties = parties
|
||||||
self._state = 0 #0 filling, 1, draining, -1 resetting, -2 broken
|
self._state = 0 # 0 filling, 1 draining, -1 resetting, -2 broken
|
||||||
self._count = 0
|
self._count = 0
|
||||||
|
|
||||||
def wait(self, timeout=None):
|
def wait(self, timeout=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue