# HG changeset patch # User timeless # Date 2016-03-01 09:59:58 # Node ID d03b7800672c6814d397d7c36fb37d9aadd7b3d2 # Parent eb9d0e828c302c1a7369aa558715aed02d721309 zeroconf: compare singleton using is diff --git a/hgext/zeroconf/Zeroconf.py b/hgext/zeroconf/Zeroconf.py --- a/hgext/zeroconf/Zeroconf.py +++ b/hgext/zeroconf/Zeroconf.py @@ -1145,7 +1145,7 @@ class ServiceInfo(object): 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