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

login
register
mail settings
Submitter timeless@mozdev.org
Date March 1, 2016, 10:39 a.m.
Message ID <4e8b98f1fbb1bd24ec2b.1456828750@waste.org>
Download mbox | patch
Permalink /patch/13495/
State Accepted
Headers show

Comments

timeless@mozdev.org - March 1, 2016, 10:39 a.m.
# HG changeset patch
# User timeless <timeless@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
Augie Fackler - March 1, 2016, 6:37 p.m.
On Tue, Mar 01, 2016 at 04:39:10AM -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless@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@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

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())