[PATCH] zeroconf: remove leftover camelcase identifier

Martin von Zweigbergk martinvonz at google.com
Fri Mar 11 18:43:35 EST 2016


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1457739658 28800
#      Fri Mar 11 15:40:58 2016 -0800
# Node ID ba09b4f270fd8d6f947bf506ea1edbeee329985d
# Parent  cb1ca2dedd8684e23b4b7fd33d10b62f75562bf1
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.

diff -r cb1ca2dedd86 -r ba09b4f270fd hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Fri Mar 11 11:44:03 2016 -0800
+++ 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,


More information about the Mercurial-devel mailing list