py3: make largefiles/remotestore.py use absolute_import
authorliscju <piotr.listkiewicz@gmail.com>
Tue, 10 May 2016 15:00:22 +0200
changeset 29313 0ccab84f9630
parent 29312 29139be0ccc7
child 29314 bde283a1ad1a
py3: make largefiles/remotestore.py use absolute_import
hgext/largefiles/remotestore.py
tests/test-check-py3-compat.t
--- a/hgext/largefiles/remotestore.py	Tue May 10 14:41:58 2016 +0200
+++ b/hgext/largefiles/remotestore.py	Tue May 10 15:00:22 2016 +0200
@@ -5,17 +5,25 @@
 # GNU General Public License version 2 or any later version.
 
 '''remote largefile store; the base class for wirestore'''
+from __future__ import absolute_import
 
-from mercurial import util, wireproto, error
 from mercurial.i18n import _
 
+from mercurial import (
+    error,
+    util,
+    wireproto,
+)
+
+from . import (
+    basestore,
+    lfutil,
+    localstore,
+)
+
 urlerr = util.urlerr
 urlreq = util.urlreq
 
-import lfutil
-import basestore
-import localstore
-
 class remotestore(basestore.basestore):
     '''a largefile store accessed over a network'''
     def __init__(self, ui, repo, url):
--- a/tests/test-check-py3-compat.t	Tue May 10 14:41:58 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 15:00: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/remotestore.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