]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623)
authorŁukasz Langa <lukasz@langa.pl>
Wed, 29 Sep 2021 14:11:26 +0000 (16:11 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Sep 2021 14:11:26 +0000 (16:11 +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>
Lib/threading.py

index e9962d1661df6f4e283918119760c101d8197a20..2f473bf1b2c2b3df3d625abeaf5954d43c750282 100644 (file)
@@ -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):