Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webutil.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 | 724f2e21d870 |
children | be3f33f5e232 |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Thu Mar 22 21:19:31 2018 +0900 +++ b/mercurial/hgweb/webutil.py Thu Mar 22 21:56:20 2018 +0900 @@ -38,6 +38,10 @@ util, ) +from ..utils import ( + stringutil, +) + def up(p): if p[0:1] != "/": p = "/" + p @@ -180,7 +184,7 @@ for k in ('ignorews', 'ignorewsamount', 'ignorewseol', 'ignoreblanklines'): v = req.qsparams.get(k) if v is not None: - v = util.parsebool(v) + v = stringutil.parsebool(v) setattr(diffopts, k, v if v is not None else True) return diffopts