# HG changeset patch # User timeless # Date 1456826398 0 # Node ID d03b7800672c6814d397d7c36fb37d9aadd7b3d2 # Parent eb9d0e828c302c1a7369aa558715aed02d721309 zeroconf: compare singleton using is diff -r eb9d0e828c30 -r d03b7800672c 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