zeroconf: remove leftover camelcase identifier
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 11 Mar 2016 15:40:58 -0800
changeset 28504 3c90090320ad
parent 28503 138ec8835e63
child 28505 d5512a0a8ad6
zeroconf: remove leftover camelcase identifier eb9d0e828c30 (zeroconf: remove camelcase in identifiers, 2016-03-01) forgot one occurrence of "numAuthorities", which makes test-paths.t fail for me. I don't even know what zeroconf is, but this patch seems obviously correct and it fixes the failing test case.
hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Sat Mar 12 04:35:42 2016 +0900
+++ b/hgext/zeroconf/Zeroconf.py	Fri Mar 11 15:40:58 2016 -0800
@@ -555,7 +555,7 @@
         """Reads answers, authorities and additionals section of the packet"""
         format = '!HHiH'
         length = struct.calcsize(format)
-        n = self.numanswers + self.numAuthorities + self.numadditionals
+        n = self.numanswers + self.numauthorities + self.numadditionals
         for i in range(0, n):
             domain = self.readName()
             info = struct.unpack(format,