Patchwork D2544: bookmarks: fix a repr in a message on Python 3

login
register
mail settings
Submitter phabricator
Date March 2, 2018, 2:50 p.m.
Message ID <differential-rev-PHID-DREV-5haohf62ljdpnwcllmpx-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28672/
State Superseded
Headers show

Comments

phabricator - March 2, 2018, 2:50 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/bookmarks.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -84,7 +84,7 @@ 
                         # - node in nm, for non-20-bytes entry
                         # - split(...), for string without ' '
                         repo.ui.warn(_('malformed line in .hg/bookmarks: %r\n')
-                                     % line)
+                                     % pycompat.bytestr(line))
         except IOError as inst:
             if inst.errno != errno.ENOENT:
                 raise