From 5f5fa5400498f93cdb1c9a61658a770b3f2e9139 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 d96d99a713e9043..4433f5ef88360e3 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -608,7 +608,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 wait(self, timeout=None): From aa711235744c84420f2d50b526878c9cf67f8a56 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 4433f5ef88360e3..515a891435ae262 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -608,7 +608,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 wait(self, timeout=None):