mercurial/bookmarks.py
changeset 33092 d170f59f6f55
parent 33011 8299eb9b08c7
child 33146 7017567ebdf2
--- a/mercurial/bookmarks.py	Mon Jun 26 09:37:16 2017 +0900
+++ b/mercurial/bookmarks.py	Sat Jun 24 19:55:01 2017 +0530
@@ -20,6 +20,7 @@
     error,
     lock as lockmod,
     obsolete,
+    pycompat,
     scmutil,
     txnutil,
     util,
@@ -771,6 +772,7 @@
     Provides a way for extensions to control how bookmarks are printed (e.g.
     prepend or postpend names)
     """
+    opts = pycompat.byteskwargs(opts)
     fm = ui.formatter('bookmarks', opts)
     hexfn = fm.hexfunc
     if len(bmarks) == 0 and fm.isplain():