mercurial/formatter.py
changeset 28630 bf35644b9f3a
parent 28384 3356bf61fa25
child 28954 f97a0bcfd7a1
--- a/mercurial/formatter.py	Sat Mar 26 19:01:12 2016 +0900
+++ b/mercurial/formatter.py	Sat Mar 26 18:12:12 2016 +0900
@@ -171,11 +171,7 @@
     # perhaps it's a reference to [templates]
     t = ui.config('templates', tmpl)
     if t:
-        try:
-            tmpl = templater.unquotestring(t)
-        except SyntaxError:
-            tmpl = t
-        return tmpl, None
+        return templater.unquotestring(t), None
 
     if tmpl == 'list':
         ui.write(_("available styles: %s\n") % templater.stylelist())