diff mercurial/formatter.py @ 31170:e64b70c96338

formatter: drop filters argument from maketemplater() It's unused now. I want to keep the high-level API simple.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Feb 2017 22:04:30 +0900
parents 783016005122
children 16272d8c24f6
line wrap: on
line diff
--- a/mercurial/formatter.py	Sat Feb 25 16:26:58 2017 +0900
+++ b/mercurial/formatter.py	Sat Feb 25 22:04:30 2017 +0900
@@ -389,10 +389,10 @@
         return templater.templater.frommapfile(mapfile)
     return maketemplater(ui, topic, tmpl)
 
-def maketemplater(ui, topic, tmpl, filters=None, cache=None):
+def maketemplater(ui, topic, tmpl, cache=None):
     """Create a templater from a string template 'tmpl'"""
     aliases = ui.configitems('templatealias')
-    t = templater.templater(filters=filters, cache=cache, aliases=aliases)
+    t = templater.templater(cache=cache, aliases=aliases)
     if tmpl:
         t.cache[topic] = tmpl
     return t