zeroconf: fix deprecation warning with python 3.10
authorJulien Cristau <jcristau@debian.org>
Wed, 06 Apr 2022 22:29:49 +0200
changeset 49053 7d1daa1ef286
parent 49052 34cdad07d06d
child 49054 5144d3579a9c
zeroconf: fix deprecation warning with python 3.10 threading.condition.notifyAll → threading.condition.notify_all Differential Revision: https://phab.mercurial-scm.org/D12487
hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Mon Apr 11 11:14:55 2022 +0200
+++ b/hgext/zeroconf/Zeroconf.py	Wed Apr 06 22:29:49 2022 +0200
@@ -1459,7 +1459,7 @@
     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):