zeroconf: compare singleton using is
authortimeless <timeless@mozdev.org>
Tue, 01 Mar 2016 09:59:58 +0000
changeset 28420 d03b7800672c
parent 28419 eb9d0e828c30
child 28421 6d72cc613fc4
zeroconf: compare singleton using is
hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Tue Mar 01 09:57:45 2016 +0000
+++ b/hgext/zeroconf/Zeroconf.py	Tue Mar 01 09:59:58 2016 +0000
@@ -1145,7 +1145,7 @@
                         value = 0
 
                 # Only update non-existent properties
-                if key and result.get(key) == None:
+                if key and result.get(key) is None:
                     result[key] = value
 
             self.properties = result