py3: make largefiles/uisetup.py use absolute_import
authorliscju <piotr.listkiewicz@gmail.com>
Tue, 10 May 2016 15:14:41 +0200
changeset 29315 2143266ecb65
parent 29314 bde283a1ad1a
child 29316 28dfcf3d0ad3
py3: make largefiles/uisetup.py use absolute_import
hgext/largefiles/uisetup.py
tests/test-check-py3-compat.t
--- a/hgext/largefiles/uisetup.py	Tue May 10 15:04:22 2016 +0200
+++ b/hgext/largefiles/uisetup.py	Tue May 10 15:14:41 2016 +0200
@@ -7,14 +7,36 @@
 # GNU General Public License version 2 or any later version.
 
 '''setup for largefiles extension: uisetup'''
+from __future__ import absolute_import
 
-from mercurial import archival, cmdutil, commands, extensions, filemerge, hg, \
-    httppeer, merge, scmutil, sshpeer, wireproto, subrepo, copies, exchange
 from mercurial.i18n import _
-from mercurial.hgweb import hgweb_mod, webcommands
+
+from mercurial.hgweb import (
+    hgweb_mod,
+    webcommands,
+)
 
-import overrides
-import proto
+from mercurial import (
+    archival,
+    cmdutil,
+    commands,
+    copies,
+    exchange,
+    extensions,
+    filemerge,
+    hg,
+    httppeer,
+    merge,
+    scmutil,
+    sshpeer,
+    subrepo,
+    wireproto,
+)
+
+from . import (
+    overrides,
+    proto,
+)
 
 def uisetup(ui):
     # Disable auto-status for some commands which assume that all
--- a/tests/test-check-py3-compat.t	Tue May 10 15:04:22 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 15:14:41 2016 +0200
@@ -10,7 +10,6 @@
   hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
   hgext/highlight/__init__.py not using absolute_import
   hgext/highlight/highlight.py not using absolute_import
-  hgext/largefiles/uisetup.py not using absolute_import
   hgext/largefiles/wirestore.py not using absolute_import
   hgext/share.py not using absolute_import
   hgext/win32text.py not using absolute_import