hgext/zeroconf/Zeroconf.py
changeset 41365 876494fd967d
parent 35629 31451f3f4b56
child 41519 a36f462cf533
--- a/hgext/zeroconf/Zeroconf.py	Mon Sep 24 14:46:37 2018 -0700
+++ b/hgext/zeroconf/Zeroconf.py	Thu Jan 17 09:17:12 2019 -0800
@@ -938,7 +938,6 @@
         self.zeroconf.engine.addReader(self, self.zeroconf.socket)
 
     def handle_read(self):
-        data = addr = port = None
         sock = self.zeroconf.socket
         try:
             data, (addr, port) = sock.recvfrom(_MAX_MSG_ABSOLUTE)
@@ -1230,7 +1229,6 @@
         delay = _LISTENER_TIME
         next = now + delay
         last = now + timeout
-        result = 0
         try:
             zeroconf.addListener(self, DNSQuestion(self.name, _TYPE_ANY,
                                                    _CLASS_IN))