Patchwork D7461: py3: wrap a __func__ in sysbytes() before logging as bytes

login
register
mail settings
Submitter phabricator
Date Nov. 20, 2019, 4:51 p.m.
Message ID <differential-rev-PHID-DREV-qnx6vyvzeptyebstym5f-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43374/
State Superseded
Headers show

Comments

phabricator - Nov. 20, 2019, 4:51 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/remotefilelog/basestore.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/basestore.py b/hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py
+++ b/hgext/remotefilelog/basestore.py
@@ -441,7 +441,10 @@ 
             i = 0
             while i < self.numattempts:
                 if i > 0:
-                    retrylog(b're-attempting (n=%d) %s\n' % (i, funcname))
+                    retrylog(
+                        b're-attempting (n=%d) %s\n'
+                        % (i, pycompat.sysbytes(funcname))
+                    )
                     self.markforrefresh()
                 i += 1
                 try: