tests/test-hgwebdir-paths.py
changeset 28932 4eac86331acb
parent 15381 c519cd8f0169
child 30559 d83ca854fa21
--- a/tests/test-hgwebdir-paths.py	Sat Apr 16 03:22:45 2016 +0530
+++ b/tests/test-hgwebdir-paths.py	Sat Apr 16 03:35:27 2016 +0530
@@ -1,13 +1,21 @@
+from __future__ import absolute_import
+
 import os
-from mercurial import hg, ui
-from mercurial.hgweb.hgwebdir_mod import hgwebdir
+from mercurial import (
+    hg,
+    ui as uimod,
+)
+from mercurial.hgweb import (
+    hgwebdir_mod,
+)
+hgwebdir = hgwebdir_mod.hgwebdir
 
 os.mkdir('webdir')
 os.chdir('webdir')
 
 webdir = os.path.realpath('.')
 
-u = ui.ui()
+u = uimod.ui()
 hg.repository(u, 'a', create=1)
 hg.repository(u, 'b', create=1)
 os.chdir('b')