zeroconf: del is not a function
authortimeless <timeless@mozdev.org>
Tue, 01 Mar 2016 09:44:32 +0000
changeset 28301 fd8a4d2d6541
parent 28300 15c5f50e7e13
child 28302 e96a3ae025ed
zeroconf: del is not a function
hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Tue Mar 01 09:48:11 2016 +0000
+++ b/hgext/zeroconf/Zeroconf.py	Tue Mar 01 09:44:32 2016 +0000
@@ -915,7 +915,7 @@
 
     def delReader(self, socket):
         self.condition.acquire()
-        del(self.readers[socket])
+        del self.readers[socket]
         self.condition.notify()
         self.condition.release()
 
@@ -1011,7 +1011,7 @@
                 if not expired:
                     oldrecord.resetTTL(record)
                 else:
-                    del(self.services[record.alias.lower()])
+                    del self.services[record.alias.lower()]
                     callback = (lambda x:
                         self.listener.removeService(x, self.type, record.alias))
                     self.list.append(callback)
@@ -1380,7 +1380,7 @@
         for browser in self.browsers:
             if browser.listener == listener:
                 browser.cancel()
-                del(browser)
+                del browser
 
     def registerService(self, info, ttl=_DNS_TTL):
         """Registers service information to the network with a default TTL
@@ -1423,7 +1423,7 @@
     def unregisterService(self, info):
         """Unregister a service."""
         try:
-            del(self.services[info.name.lower()])
+            del self.services[info.name.lower()]
             if self.servicetypes[info.type] > 1:
                 self.servicetypes[info.type] -= 1
             else: