summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-29 15:21:55 (GMT)
committerGitHub <noreply@github.com>2021-09-29 15:21:55 (GMT)
commit017a791ae47bc5700b25443f9dfcec44beb96912 (patch)
treee9dfbd642908810381a0c89342d99a04f71883aa
parent412ae8ab10734b72384c969181919cc4eb154406 (diff)
downloadcpython-017a791ae47bc5700b25443f9dfcec44beb96912.zip
cpython-017a791ae47bc5700b25443f9dfcec44beb96912.tar.gz
cpython-017a791ae47bc5700b25443f9dfcec44beb96912.tar.bz2
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28625)
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 f1ca5d7f61594bf3627f0897b596877a0774c8e7) Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index c7f7d5f..3e9577d 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -634,7 +634,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 wait(self, timeout=None):