From 48350412b70c76fa51f488cfc736c80d59b5e8eb Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 4 Jul 2017 08:59:22 +0200 Subject: bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` (#2480) * bpo-29293: multiprocessing.Condition.notify() lacks parameter `n` * Add NEWS blurb --- Lib/multiprocessing/managers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/multiprocessing/managers.py') diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 43dd02a5a3..cae1c10734 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): -- cgit v1.2.1