Mercurial > public > mercurial-scm > hg
diff mercurial/formatter.py @ 36920: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 | cafd0586876b |
children | 32f9b7e3f056 |
line wrap: on
line diff
--- a/mercurial/formatter.py Wed Feb 28 15:20:41 2018 -0500 +++ b/mercurial/formatter.py Thu Mar 08 23:10:46 2018 +0900 @@ -124,6 +124,7 @@ templatefilters, templatekw, templater, + templateutil, util, ) from .utils import dateutil @@ -403,7 +404,7 @@ props['revcache'] = {} props = pycompat.strkwargs(props) g = self._t(ref, **props) - self._out.write(templater.stringify(g)) + self._out.write(templateutil.stringify(g)) def end(self): baseformatter.end(self)