changeset 36568:a5eefc9cccc5

bookmarks: fix a repr in a message on Python 3 Differential Revision: https://phab.mercurial-scm.org/D2544
author Augie Fackler <augie@google.com>
date Fri, 02 Mar 2018 00:19:16 -0500
parents 19ec5da944d5
children bb5f5c1c3c1b
files mercurial/bookmarks.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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