Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templateutil.py @ 37087:f0b6fbea00cf
stringutil: bulk-replace call sites to point to new module
This might conflict with other patches floating around, sorry.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 22 Mar 2018 21:56:20 +0900 |
parents | 2891079fb0c0 |
children | 7db3c28dfdfd |
line wrap: on
line diff
--- a/mercurial/templateutil.py Thu Mar 22 21:19:31 2018 +0900 +++ b/mercurial/templateutil.py Thu Mar 22 21:56:20 2018 +0900 @@ -15,6 +15,9 @@ pycompat, util, ) +from .utils import ( + stringutil, +) class ResourceUnavailable(error.Abort): pass @@ -281,7 +284,7 @@ thing = func(context, mapping, data, default=None) if thing is None: # not a template keyword, takes as a boolean literal - thing = util.parsebool(data) + thing = stringutil.parsebool(data) else: thing = func(context, mapping, data) thing = unwrapvalue(thing)