From: Ɓukasz Langa Date: Wed, 29 Sep 2021 14:11:26 +0000 (+0200) Subject: [typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) X-Git-Tag: v3.11.0a1~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1ca5d7f61594bf3627f0897b596877a0774c8e7;p=thirdparty%2FPython%2Fcpython.git [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> --- diff --git a/Lib/threading.py b/Lib/threading.py index e9962d1661df..2f473bf1b2c2 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):