]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 29 Sep 2021 15:20:49 +0000 (08:20 -0700)
committerGitHub <noreply@github.com>
Wed, 29 Sep 2021 15:20:49 +0000 (17:20 +0200)
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>
Lib/threading.py

index 448f152600c53490072446a747f408b4cc549784..0f2b9239ce399902eb2a0fbd37c66dc49dc3b4b2 100644 (file)
@@ -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):