Patchwork D8627: zeroconf: fix non existant formatting in the vendored zeroconf module

login
register
mail settings
Submitter phabricator
Date June 13, 2020, 9:07 a.m.
Message ID <differential-rev-PHID-DREV-syfvlwfojwrzz2jv6yxl-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46498/
State Superseded
Headers show

Comments

phabricator - June 13, 2020, 9:07 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D8627

AFFECTED FILES
  hgext/zeroconf/Zeroconf.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, 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
@@ -1647,7 +1647,7 @@ 
                     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,