[Python-checkins] [typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28626)
ambv
webhook-mailer at python.org
Wed Sep 29 11:20:57 EDT 2021
https://github.com/python/cpython/commit/87ecdb227f237099fde8ad374fd6bd0cd6392b0b
commit: 87ecdb227f237099fde8ad374fd6bd0cd6392b0b
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-29T17:20:49+02:00
summary:
[typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623) (GH-28626)
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 at users.noreply.github.com>
(cherry picked from commit f1ca5d7f61594bf3627f0897b596877a0774c8e7)
Co-authored-by: Łukasz Langa <lukasz at langa.pl>
files:
M Lib/threading.py
diff --git a/Lib/threading.py b/Lib/threading.py
index 448f152600c53..0f2b9239ce399 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):
More information about the Python-checkins
mailing list