changeset 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 48a8b2e5fe31
children 1ec89cf0ea49
files mercurial/formatter.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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