diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2021-09-29 14:11:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 14:11:26 (GMT) |
commit | f1ca5d7f61594bf3627f0897b596877a0774c8e7 (patch) | |
tree | 705201df5e99fe355385f1606e0df04b389d6d12 | |
parent | 6c1154b9de29e1c9cd3d05f5289543e5cff73895 (diff) | |
download | cpython-f1ca5d7f61594bf3627f0897b596877a0774c8e7.zip cpython-f1ca5d7f61594bf3627f0897b596877a0774c8e7.tar.gz cpython-f1ca5d7f61594bf3627f0897b596877a0774c8e7.tar.bz2 |
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623)
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>
-rw-r--r-- | Lib/threading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index e9962d1..2f473bf 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -649,7 +649,7 @@ class Barrier: self._action = action self._timeout = timeout 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 def __repr__(self): |