changeset 28301:fd8a4d2d6541

zeroconf: del is not a function
author timeless <timeless@mozdev.org>
date Tue, 01 Mar 2016 09:44:32 +0000
parents 15c5f50e7e13
children e96a3ae025ed
files hgext/zeroconf/Zeroconf.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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: