aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2021-09-29 16:11:26 +0200
committerGitHub <noreply@github.com>2021-09-29 16:11:26 +0200
commitf1ca5d7f61594bf3627f0897b596877a0774c8e7 (patch)
tree705201df5e99fe355385f1606e0df04b389d6d12 /Lib/threading.py
parent6c1154b9de29e1c9cd3d05f5289543e5cff73895 (diff)
downloadcpython-f1ca5d7f61594bf3627f0897b596877a0774c8e7.tar.gz
cpython-f1ca5d7f61594bf3627f0897b596877a0774c8e7.zip
[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>
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index e9962d1661d..2f473bf1b2c 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):