diff hgext/zeroconf/Zeroconf.py @ 49053:7d1daa1ef286

zeroconf: fix deprecation warning with python 3.10 threading.condition.notifyAll ? threading.condition.notify_all Differential Revision: https://phab.mercurial-scm.org/D12487
author Julien Cristau <jcristau@debian.org>
date Wed, 06 Apr 2022 22:29:49 +0200
parents 642e31cb55f0
children e3143ab9dadb
line wrap: on
line diff
--- 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):