Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templater.py @ 36926:6ff6e1d6b5b8
templater: move stringify() to templateutil module
As we have a util module, it doesn't make sense to import stringify() from
templatefilters.py.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 08 Mar 2018 23:10:46 +0900 |
parents | da2977e674a3 |
children | 32f9b7e3f056 |
line wrap: on
line diff
--- a/mercurial/templater.py Wed Feb 28 15:20:41 2018 -0500 +++ b/mercurial/templater.py Thu Mar 08 23:10:46 2018 +0900 @@ -1118,8 +1118,6 @@ # template engine -stringify = templatefilters.stringify - def _flatten(thing): '''yield a single stream from a possibly nested set of iterators''' thing = templatekw.unwraphybrid(thing) @@ -1366,7 +1364,7 @@ def render(self, mapping): """Render the default unnamed template and return result as string""" mapping = pycompat.strkwargs(mapping) - return stringify(self('', **mapping)) + return templateutil.stringify(self('', **mapping)) def __call__(self, t, **mapping): mapping = pycompat.byteskwargs(mapping)