changeset 28420:d03b7800672c

zeroconf: compare singleton using is
author timeless <timeless@mozdev.org>
date Tue, 01 Mar 2016 09:59:58 +0000
parents eb9d0e828c30
children 6d72cc613fc4
files hgext/zeroconf/Zeroconf.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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