mercurial/hgweb/hgweb_mod.py
changeset 27008 7f19f331ef59
parent 27007 c8cbef073645
child 27045 eac72c1e1e0d
--- a/mercurial/hgweb/hgweb_mod.py	Sun Nov 01 13:58:32 2015 +0900
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Nov 01 14:00:14 2015 +0900
@@ -10,7 +10,7 @@
 import os
 from mercurial import hg, hook, error, encoding, templater, util, repoview
 from mercurial import ui as uimod
-from mercurial.templatefilters import websub
+from mercurial import templatefilters
 from common import ErrorResponse, permhooks, caching
 from common import HTTP_OK, HTTP_NOT_MODIFIED, HTTP_BAD_REQUEST
 from common import HTTP_NOT_FOUND, HTTP_SERVER_ERROR
@@ -159,7 +159,7 @@
                              or req.url.strip('/') or self.repo.root)
 
         def websubfilter(text):
-            return websub(text, self.websubtable)
+            return templatefilters.websub(text, self.websubtable)
 
         # create the templater