summaryrefslogtreecommitdiffstats
path: root/Lib/multiprocessing/managers.py
diff options
context:
space:
mode:
authorAntoine Pitrou <pitrou@free.fr>2017-07-04 06:59:22 (GMT)
committerGitHub <noreply@github.com>2017-07-04 06:59:22 (GMT)
commit48350412b70c76fa51f488cfc736c80d59b5e8eb (patch)
tree7614e3921d80f314a1efbb367ffc575833c892c2 /Lib/multiprocessing/managers.py
parentd3ed2877a798d07df75422afe136b4727e500c99 (diff)
downloadcpython-48350412b70c76fa51f488cfc736c80d59b5e8eb.zip
cpython-48350412b70c76fa51f488cfc736c80d59b5e8eb.tar.gz
cpython-48350412b70c76fa51f488cfc736c80d59b5e8eb.tar.bz2
bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` (#2480)
* bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` * Add NEWS blurb
Diffstat (limited to 'Lib/multiprocessing/managers.py')
-rw-r--r--Lib/multiprocessing/managers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
index 43dd02a..cae1c10 100644
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -999,8 +999,8 @@ class ConditionProxy(AcquirerProxy):
_exposed_ = ('acquire', 'release', 'wait', 'notify', 'notify_all')
def wait(self, timeout=None):
return self._callmethod('wait', (timeout,))
- def notify(self):
- return self._callmethod('notify')
+ def notify(self, n=1):
+ return self._callmethod('notify', (n,))
def notify_all(self):
return self._callmethod('notify_all')
def wait_for(self, predicate, timeout=None):