mercurial/color.py
changeset 40223 cabf09dbc6e0
parent 39644 3b421154d2ca
child 40367 824b687ff6af
--- a/mercurial/color.py	Sat Oct 13 04:36:04 2018 +0300
+++ b/mercurial/color.py	Sat Oct 13 04:42:14 2018 +0300
@@ -296,9 +296,9 @@
                 if valideffect(ui, e):
                     good.append(e)
                 else:
-                    ui.warn(_("ignoring unknown color/effect %r "
+                    ui.warn(_("ignoring unknown color/effect %s "
                               "(configured in color.%s)\n")
-                            % (e, status))
+                            % (stringutil.pprint(e), status))
             ui._styles[status] = ' '.join(good)
 
 def _activeeffects(ui):