--- a/hgext/zeroconf/Zeroconf.py Tue Mar 01 09:59:58 2016 +0000
+++ b/hgext/zeroconf/Zeroconf.py Tue Mar 01 10:22:10 2016 +0000
@@ -1389,7 +1389,7 @@
changed if needed to make it unique on the network."""
self.checkService(info)
self.services[info.name.lower()] = info
- if self.servicetypes.has_key(info.type):
+ if info.type in self.servicetypes:
self.servicetypes[info.type] += 1
else:
self.servicetypes[info.type] = 1
@@ -1678,5 +1678,3 @@
r.unregisterService(info)
print(" Unregister done.")
r.close()
-
-# no-check-code
--- a/tests/test-check-code.t Tue Mar 01 09:59:58 2016 +0000
+++ b/tests/test-check-code.t Tue Mar 01 10:22:10 2016 +0000
@@ -8,7 +8,6 @@
$ hg locate | sed 's-\\-/-g' |
> xargs "$check_code" --warnings --per-file=0 || false
- Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob)
Skipping i18n/polib.py it has no-che?k-code (glob)
Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)