bookmarks: fix a repr in a message on Python 3
authorAugie Fackler <augie@google.com>
Fri, 02 Mar 2018 00:19:16 -0500
changeset 36568 a5eefc9cccc5
parent 36567 19ec5da944d5
child 36569 bb5f5c1c3c1b
bookmarks: fix a repr in a message on Python 3 Differential Revision: https://phab.mercurial-scm.org/D2544
mercurial/bookmarks.py
--- a/mercurial/bookmarks.py	Fri Mar 02 00:11:19 2018 -0500
+++ b/mercurial/bookmarks.py	Fri Mar 02 00:19:16 2018 -0500
@@ -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