Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatefilters.py @ 36927:32f9b7e3f056
templater: move hybrid class and functions to templateutil module
And make _hybrid and _mappable classes public. _showlist() is still marked
as private since it's weird and third-party codes shouldn't depend on it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 08 Mar 2018 23:15:09 +0900 |
parents | 6ff6e1d6b5b8 |
children | f0b6fbea00cf |
line wrap: on
line diff
--- a/mercurial/templatefilters.py Thu Mar 08 23:10:46 2018 +0900 +++ b/mercurial/templatefilters.py Thu Mar 08 23:15:09 2018 +0900 @@ -17,7 +17,6 @@ node, pycompat, registrar, - templatekw, templateutil, url, util, @@ -366,7 +365,7 @@ @templatefilter('splitlines') def splitlines(text): """Any text. Split text into a list of lines.""" - return templatekw.hybridlist(text.splitlines(), name='line') + return templateutil.hybridlist(text.splitlines(), name='line') @templatefilter('stringescape') def stringescape(text):