py3: make largefiles/__init__.py use absolute_import
authorliscju <piotr.listkiewicz@gmail.com>
Fri, 06 May 2016 14:28:32 +0200
changeset 29306 83cecc0b991f
parent 29305 814076f4ace3
child 29307 67999697221a
py3: make largefiles/__init__.py use absolute_import
hgext/largefiles/__init__.py
tests/test-check-py3-compat.t
--- a/hgext/largefiles/__init__.py	Sat Jun 04 16:53:44 2016 +0200
+++ b/hgext/largefiles/__init__.py	Fri May 06 14:28:32 2016 +0200
@@ -104,14 +104,20 @@
 explicitly do so with the --large flag passed to the :hg:`add`
 command.
 '''
+from __future__ import absolute_import
 
-from mercurial import hg, localrepo
+from mercurial import (
+    hg,
+    localrepo,
+)
 
-import lfcommands
-import proto
-import reposetup
-import uisetup as uisetupmod
-import overrides
+from . import (
+    lfcommands,
+    overrides,
+    proto,
+    reposetup,
+    uisetup as uisetupmod,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
--- a/tests/test-check-py3-compat.t	Sat Jun 04 16:53:44 2016 +0200
+++ b/tests/test-check-py3-compat.t	Fri May 06 14:28:32 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/__init__.py not using absolute_import
   hgext/largefiles/basestore.py not using absolute_import
   hgext/largefiles/lfcommands.py not using absolute_import
   hgext/largefiles/lfutil.py not using absolute_import