mercurial/ui.py
changeset 36126 8f5c7f906f9b
parent 35961 0ff41ced4c12
child 36127 df1760b58fda
--- a/mercurial/ui.py	Mon Feb 12 20:39:48 2018 -0500
+++ b/mercurial/ui.py	Mon Feb 12 20:41:47 2018 -0500
@@ -498,7 +498,7 @@
               and default != itemdefault):
             msg = ("specifying a mismatched default value for a registered "
                    "config item: '%s.%s' '%s'")
-            msg %= (section, name, default)
+            msg %= (section, name, pycompat.bytestr(default))
             self.develwarn(msg, 2, 'warn-config-default')
 
         for s, n in alternates: