From 21b1734700f93b7d15db8f34fbb0fc874c0608ab Mon Sep 17 00:00:00 2001 From: Priyank <5903604+cpriyank@users.noreply.github.com> Date: Sun, 13 Dec 2020 12:27:00 -0800 Subject: [PATCH 1/2] improved comment that indicates state of Barrier removed extra comma in comment that indicates state of a `Barrier` as it was confusing and breaking the flow while reading --- Lib/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/threading.py b/Lib/threading.py index e9962d1661df6f..b773d7f34bac5d 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -649,7 +649,7 @@ def __init__(self, parties, action=None, timeout=None): 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): From cb88175fa9f31d82a6f9827cb8805eb17294d81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 29 Sep 2021 15:23:49 +0200 Subject: [PATCH 2/2] Update Lib/threading.py --- Lib/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/threading.py b/Lib/threading.py index b773d7f34bac5d..2f473bf1b2c2b3 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -649,7 +649,7 @@ def __init__(self, parties, action=None, timeout=None): 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):