]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in message from assert statement (GH-21283)
authorAllen <64019758+aboddie@users.noreply.github.com>
Mon, 17 Aug 2020 13:38:55 +0000 (09:38 -0400)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 13:38:55 +0000 (19:08 +0530)
The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.

Lib/multiprocessing/synchronize.py

index 4fcbefc8bbefd33eb5c4c2956049570e57e2f390..d0be48f1fd7a8f14b935f74d89c168d831b84dbc 100644 (file)
@@ -270,7 +270,7 @@ class Condition(object):
     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