formatter: drop filters argument from maketemplater()
authorYuya Nishihara <yuya@tcha.org>
Sat, 25 Feb 2017 22:04:30 +0900
changeset 31170 e64b70c96338
parent 31169 48a8b2e5fe31
child 31171 1ec89cf0ea49
formatter: drop filters argument from maketemplater() It's unused now. I want to keep the high-level API simple.
mercurial/formatter.py
--- 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