diff mercurial/hgweb/webutil.py @ 27007:c8cbef073645

hgweb: alias ui module as uimod It will be enforced by the import checker.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 01 Nov 2015 13:58:32 +0900
parents 41957e50e109
children 7f19f331ef59
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Tue Nov 17 14:23:26 2015 -0800
+++ b/mercurial/hgweb/webutil.py	Sun Nov 01 13:58:32 2015 +0900
@@ -8,7 +8,8 @@
 
 import os, copy
 import re
-from mercurial import match, patch, error, ui, util, pathutil, context
+from mercurial import match, patch, error, util, pathutil, context
+from mercurial import ui as uimod
 from mercurial.i18n import _
 from mercurial.node import hex, nullid, short
 from mercurial.templatefilters import revescape
@@ -537,7 +538,7 @@
             yield {'name': key, 'value': str(value), 'separator': separator}
             separator = '&'
 
-class wsgiui(ui.ui):
+class wsgiui(uimod.ui):
     # default termwidth breaks under mod_wsgi
     def termwidth(self):
         return 80