From 87ecdb227f237099fde8ad374fd6bd0cd6392b0b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 29 Sep 2021 08:20:49 -0700 Subject: [PATCH] [typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28626) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- Lib/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/threading.py b/Lib/threading.py index 448f152600c5..0f2b9239ce39 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): -- 2.47.3