Show More
@@ -1389,7 +1389,7 b' class Zeroconf(object):' | |||||
1389 | changed if needed to make it unique on the network.""" |
|
1389 | changed if needed to make it unique on the network.""" | |
1390 | self.checkService(info) |
|
1390 | self.checkService(info) | |
1391 | self.services[info.name.lower()] = info |
|
1391 | self.services[info.name.lower()] = info | |
1392 |
if self.servicetypes |
|
1392 | if info.type in self.servicetypes: | |
1393 | self.servicetypes[info.type] += 1 |
|
1393 | self.servicetypes[info.type] += 1 | |
1394 | else: |
|
1394 | else: | |
1395 | self.servicetypes[info.type] = 1 |
|
1395 | self.servicetypes[info.type] = 1 | |
@@ -1678,5 +1678,3 b" if __name__ == '__main__':" | |||||
1678 | r.unregisterService(info) |
|
1678 | r.unregisterService(info) | |
1679 | print(" Unregister done.") |
|
1679 | print(" Unregister done.") | |
1680 | r.close() |
|
1680 | r.close() | |
1681 |
|
||||
1682 | # no-check-code |
|
@@ -8,7 +8,6 b' New errors are not allowed. Warnings are' | |||||
8 |
|
8 | |||
9 | $ hg locate | sed 's-\\-/-g' | |
|
9 | $ hg locate | sed 's-\\-/-g' | | |
10 | > xargs "$check_code" --warnings --per-file=0 || false |
|
10 | > xargs "$check_code" --warnings --per-file=0 || false | |
11 | Skipping hgext/zeroconf/Zeroconf.py it has no-che?k-code (glob) |
|
|||
12 | Skipping i18n/polib.py it has no-che?k-code (glob) |
|
11 | Skipping i18n/polib.py it has no-che?k-code (glob) | |
13 | Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob) |
|
12 | Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob) | |
14 | Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob) |
|
13 | Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now