[Python-checkins] [typo] Fix threading.Barrier comment that used confusing punctuation (GH-28623)

ambv webhook-mailer at python.org
Wed Sep 29 10:11:38 EDT 2021


https://github.com/python/cpython/commit/f1ca5d7f61594bf3627f0897b596877a0774c8e7
commit: f1ca5d7f61594bf3627f0897b596877a0774c8e7
branch: main
author: Łukasz Langa <lukasz at langa.pl>
committer: ambv <lukasz at langa.pl>
date: 2021-09-29T16:11:26+02:00
summary:

[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 at users.noreply.github.com>

files:
M Lib/threading.py

diff --git a/Lib/threading.py b/Lib/threading.py
index e9962d1661df6..2f473bf1b2c2b 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):



More information about the Python-checkins mailing list