summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-09-04 22:55:05 (GMT)
committerGitHub <noreply@github.com>2020-09-04 22:55:05 (GMT)
commit8ed1c177c99f6d27bf9f68ce0728f215205eca69 (patch)
tree20a5beae9b95cccc4d5869b1f030f02677a5631b
parentfbb9ee0a903fb9b7b4b807f85aed1de754da09e6 (diff)
downloadcpython-8ed1c177c99f6d27bf9f68ce0728f215205eca69.zip
cpython-8ed1c177c99f6d27bf9f68ce0728f215205eca69.tar.gz
cpython-8ed1c177c99f6d27bf9f68ce0728f215205eca69.tar.bz2
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. (cherry picked from commit 99c0ee3c893bb99fd98a97084fc386ce2911eb64) Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
-rw-r--r--Lib/multiprocessing/synchronize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/synchronize.py b/Lib/multiprocessing/synchronize.py
index 4fcbefc..d0be48f 100644
--- a/Lib/multiprocessing/synchronize.py
+++ b/Lib/multiprocessing/synchronize.py
@@ -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