changeset 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 34cdad07d06d
children 5144d3579a9c
files hgext/zeroconf/Zeroconf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):