]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in message from assert statement (GH-21283)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Aug 2020 15:32:11 +0000 (08:32 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 15:32:11 +0000 (08:32 -0700)
The error message was missing space between the action "acquire" and "_wait_semaphore" which is an attribute for instances of Condition.
(cherry picked from commit 99c0ee3c893bb99fd98a97084fc386ce2911eb64)

Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
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