summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-29 15:20:49 (GMT)
committerGitHub <noreply@github.com>2021-09-29 15:20:49 (GMT)
commit87ecdb227f237099fde8ad374fd6bd0cd6392b0b (patch)
treec3fcbb27e50fe02151a7bc32616d9099bb562c1b /Lib
parent1e97145d2fd1530f756d8882e42f2cf712f0f140 (diff)
downloadcpython-87ecdb227f237099fde8ad374fd6bd0cd6392b0b.zip
cpython-87ecdb227f237099fde8ad374fd6bd0cd6392b0b.tar.gz
cpython-87ecdb227f237099fde8ad374fd6bd0cd6392b0b.tar.bz2
[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 f1ca5d7f61594bf3627f0897b596877a0774c8e7) Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 448f152..0f2b923 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -608,7 +608,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):