zeroconf: import ui as uimod per test-check-module-imports
authorAugie Fackler <augie@google.com>
Tue, 01 Mar 2016 13:48:25 -0500
changeset 28308 4de74eda1d65
parent 28307 86de91c56355
child 28309 7c22b5bb3a03
zeroconf: import ui as uimod per test-check-module-imports
hgext/zeroconf/__init__.py
--- a/hgext/zeroconf/__init__.py	Sat Feb 27 22:34:18 2016 -0800
+++ b/hgext/zeroconf/__init__.py	Tue Mar 01 13:48:25 2016 -0500
@@ -34,7 +34,7 @@
     encoding,
     extensions,
     hg,
-    ui,
+    ui as uimod,
 )
 from mercurial.hgweb import (
     server as servermod
@@ -206,8 +206,8 @@
 
 extensions.wrapfunction(dispatch, '_runcommand', cleanupafterdispatch)
 
-extensions.wrapfunction(ui.ui, 'config', config)
-extensions.wrapfunction(ui.ui, 'configitems', configitems)
-extensions.wrapfunction(ui.ui, 'configsuboptions', configsuboptions)
+extensions.wrapfunction(uimod.ui, 'config', config)
+extensions.wrapfunction(uimod.ui, 'configitems', configitems)
+extensions.wrapfunction(uimod.ui, 'configsuboptions', configsuboptions)
 extensions.wrapfunction(hg, 'defaultdest', defaultdest)
 extensions.wrapfunction(servermod, 'create_server', zc_create_server)