[Python-checkins] Fix typo in message from assert statement (GH-21283)

Allen webhook-mailer at python.org
Mon Aug 17 09:39:01 EDT 2020


https://github.com/python/cpython/commit/99c0ee3c893bb99fd98a97084fc386ce2911eb64
commit: 99c0ee3c893bb99fd98a97084fc386ce2911eb64
branch: master
author: Allen <64019758+aboddie at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-08-17T19:08:55+05:30
summary:

Fix typo in message from assert statement (GH-21283)

The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.

files:
M Lib/multiprocessing/synchronize.py

diff --git a/Lib/multiprocessing/synchronize.py b/Lib/multiprocessing/synchronize.py
index 4fcbefc8bbefd..d0be48f1fd7a8 100644
--- a/Lib/multiprocessing/synchronize.py
+++ b/Lib/multiprocessing/synchronize.py
@@ -270,7 +270,7 @@ def wait(self, timeout=None):
     def notify(self, n=1):
         assert self._lock._semlock._is_mine(), 'lock is not owned'
         assert not self._wait_semaphore.acquire(
-            False), ('notify: Should not have been able to acquire'
+            False), ('notify: Should not have been able to acquire '
                      + '_wait_semaphore')
 
         # to take account of timeouts since last notify*() we subtract



More information about the Python-checkins mailing list