[PATCH] zeroconf: remove leftover camelcase identifier

Augie Fackler raf at durin42.com
Fri Mar 11 19:54:19 EST 2016


On Fri, Mar 11, 2016 at 03:43:35PM -0800, Martin von Zweigbergk wrote:
> # 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

This is pushed to the clowncopter.

(Just for reference.)

>
> 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,
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list