Mercurial > hg
diff mercurial/templater.py @ 37084: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 | 46859b437697 |
children | 638a241202a3 |
line wrap: on
line diff
--- a/mercurial/templater.py Thu Mar 22 21:19:31 2018 +0900 +++ b/mercurial/templater.py Thu Mar 22 21:56:20 2018 +0900 @@ -63,6 +63,9 @@ templateutil, util, ) +from .utils import ( + stringutil, +) # template parsing @@ -811,7 +814,8 @@ _('"%s" not in template map') % inst.args[0]) except IOError as inst: reason = (_('template file %s: %s') - % (self.map[t][1], util.forcebytestr(inst.args[1]))) + % (self.map[t][1], + stringutil.forcebytestr(inst.args[1]))) raise IOError(inst.args[0], encoding.strfromlocal(reason)) return self.cache[t]