From: Debian Python Team Date: Tue, 7 Jun 2022 18:53:46 +0000 (+0100) Subject: _zeroconf__fix_deprecation_warning_with_python_3_10 X-Git-Tag: archive/raspbian/6.1.3-1+rpi1^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9bf88b8d9df8784c67d75c7c2baaeef2fbb66a0a;p=mercurial.git _zeroconf__fix_deprecation_warning_with_python_3_10 # HG changeset patch # User Julien Cristau # Date 1649276989 -7200 # Wed Apr 06 22:29:49 2022 +0200 # Node ID ff73927e33968c053bc245884deddb78f5fb6212 # Parent b6f535f3beda19406d5f869f5a3ba33f04bf7aa0 zeroconf: fix deprecation warning with python 3.10 threading.condition.notifyAll → threading.condition.notify_all Differential Revision: https://phab.mercurial-scm.org/D12487 Gbp-Pq: Topic py310 Gbp-Pq: Name 1_zeroconf__fix_deprecation_warning_with_python_3_10.patch --- diff --git a/hgext/zeroconf/Zeroconf.py b/hgext/zeroconf/Zeroconf.py index 343873a..b6b9a41 100644 --- a/hgext/zeroconf/Zeroconf.py +++ b/hgext/zeroconf/Zeroconf.py @@ -1461,7 +1461,7 @@ class Zeroconf(object): def notifyAll(self): """Notifies all waiting threads""" self.condition.acquire() - self.condition.notifyAll() + self.condition.notify_all() self.condition.release() def getServiceInfo(self, type, name, timeout=3000):