# HG changeset patch # User Pierre-Yves David # Date 2020-06-13 09:06:22 # Node ID ba7eda4fcf8e64478812893ff3c83da23959f805 # Parent b77d5b56849655ae5e8de5e25d082a047f3675db zeroconf: fix non existant formatting in the vendored zeroconf module On Tue Mar 1st 2016 at 09:33:39 timeless decided to wrap long line in `hgext/zeroconf/Zeroconf.py`. Doing so, he fat fingered a "%w" instead of a "%s" in a string. %w does not exists, 4 year later, pyflakes (rightfully) complains about it. So I am fixing it. Differential Revision: https://phab.mercurial-scm.org/D8627 diff --git a/hgext/zeroconf/Zeroconf.py b/hgext/zeroconf/Zeroconf.py --- a/hgext/zeroconf/Zeroconf.py +++ b/hgext/zeroconf/Zeroconf.py @@ -1647,7 +1647,7 @@ class Zeroconf(object): and record.alias == info.name ): if info.name.find(b'.') < 0: - info.name = b"%w.[%s:%d].%s" % ( + info.name = b"%s.[%s:%d].%s" % ( info.name, info.address, info.port,