changeset 29314:bde283a1ad1a

py3: make largefiles/reposetup.py use absolute_import
author liscju <piotr.listkiewicz@gmail.com>
date Tue, 10 May 2016 15:04:22 +0200
parents 0ccab84f9630
children 2143266ecb65
files hgext/largefiles/reposetup.py tests/test-check-py3-compat.t
diffstat 2 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Tue May 10 15:00:22 2016 +0200
+++ b/hgext/largefiles/reposetup.py	Tue May 10 15:04:22 2016 +0200
@@ -7,14 +7,23 @@
 # GNU General Public License version 2 or any later version.
 
 '''setup for largefiles repositories: reposetup'''
+from __future__ import absolute_import
+
 import copy
 
-from mercurial import error, match as match_, error
 from mercurial.i18n import _
-from mercurial import scmutil, localrepo
 
-import lfcommands
-import lfutil
+from mercurial import (
+    error,
+    localrepo,
+    match as match_,
+    scmutil,
+)
+
+from . import (
+    lfcommands,
+    lfutil,
+)
 
 def reposetup(ui, repo):
     # wire repositories should be given new wireproto functions
--- a/tests/test-check-py3-compat.t	Tue May 10 15:00:22 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 15:04:22 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/reposetup.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