aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/multiprocessing/synchronize.py
diff options
context:
space:
mode:
authorAllen <64019758+aboddie@users.noreply.github.com>2020-08-17 09:38:55 -0400
committerGitHub <noreply@github.com>2020-08-17 19:08:55 +0530
commit99c0ee3c893bb99fd98a97084fc386ce2911eb64 (patch)
tree9c27741ccf77b5654815e85f855c15a8a0f18c0f /Lib/multiprocessing/synchronize.py
parent1abeda80f760134b4233608e2c288790f955b95a (diff)
downloadcpython-99c0ee3c893bb99fd98a97084fc386ce2911eb64.tar.gz
cpython-99c0ee3c893bb99fd98a97084fc386ce2911eb64.zip
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.
Diffstat (limited to 'Lib/multiprocessing/synchronize.py')
-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 4fcbefc8bbe..d0be48f1fd7 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