Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webutil.py @ 27008:7f19f331ef59
hgweb: do not import templatefilters.revescape and websub as symbol
It will be enforced by the import checker.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Nov 2015 14:00:14 +0900 |
parents | c8cbef073645 |
children | 0c8ef79b9fd7 |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Sun Nov 01 13:58:32 2015 +0900 +++ b/mercurial/hgweb/webutil.py Sun Nov 01 14:00:14 2015 +0900 @@ -12,7 +12,7 @@ from mercurial import ui as uimod from mercurial.i18n import _ from mercurial.node import hex, nullid, short -from mercurial.templatefilters import revescape +from mercurial import templatefilters from common import ErrorResponse, paritygen from common import HTTP_NOT_FOUND import difflib @@ -315,7 +315,7 @@ def symrevorshortnode(req, ctx): if 'node' in req.form: - return revescape(req.form['node'][0]) + return templatefilters.revescape(req.form['node'][0]) else: return short(ctx.node())