_zeroconf__fix_deprecation_warning_with_python_3_10
authorDebian Python Team <team+python@tracker.debian.org>
Mon, 11 Apr 2022 12:08:09 +0000 (13:08 +0100)
committerJulien Cristau <jcristau@debian.org>
Mon, 11 Apr 2022 12:08:09 +0000 (13:08 +0100)
# HG changeset patch
# User Julien Cristau <jcristau@debian.org>
# 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

hgext/zeroconf/Zeroconf.py

index 343873ab0568e7fbfd0042a1a9863b57cdfa5c14..b6b9a414b97f773d2d237c1564f5ac1bbeac636b 100644 (file)
@@ -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):