[PATCH 8 of 8] zeroconf: remove whitespace around = for named parameters

Augie Fackler raf at durin42.com
Tue Mar 1 13:37:52 EST 2016


On Tue, Mar 01, 2016 at 04:39:10AM -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1456825778 0
> #      Tue Mar 01 09:49:38 2016 +0000
> # Node ID 4e8b98f1fbb1bd24ec2b395851850a3f2724b263
> # Parent  0d4be35adbb10c4eb8983ec1c3665bac09e9ef43
> zeroconf: remove whitespace around = for named parameters
>

queued these, thanks

>
> diff --git a/hgext/zeroconf/Zeroconf.py b/hgext/zeroconf/Zeroconf.py
> --- a/hgext/zeroconf/Zeroconf.py
> +++ b/hgext/zeroconf/Zeroconf.py
> @@ -647,7 +647,7 @@
>  class DNSOutgoing(object):
>      """Object representation of an outgoing packet"""
>
> -    def __init__(self, flags, multicast = 1):
> +    def __init__(self, flags, multicast=1):
>          self.finished = 0
>          self.id = 0
>          self.multicast = multicast
> @@ -1629,7 +1629,7 @@
>              out.id = msg.id
>              self.send(out, addr, port)
>
> -    def send(self, out, addr = _MDNS_ADDR, port = _MDNS_PORT):
> +    def send(self, out, addr=_MDNS_ADDR, port=_MDNS_PORT):
>          """Sends an outgoing packet."""
>          # This is a quick test to see if we can parse the packets we generate
>          #temp = DNSIncoming(out.packet())
> _______________________________________________
> 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