py3: make largefiles/localstore.py use absolute_import
authorliscju <piotr.listkiewicz@gmail.com>
Tue, 10 May 2016 14:20:51 +0200
changeset 29310 f89f83c8393a
parent 29309 bfc1052570b6
child 29311 b76abae75161
py3: make largefiles/localstore.py use absolute_import
hgext/largefiles/localstore.py
tests/test-check-py3-compat.t
--- a/hgext/largefiles/localstore.py	Tue May 10 15:09:22 2016 +0200
+++ b/hgext/largefiles/localstore.py	Tue May 10 14:20:51 2016 +0200
@@ -7,11 +7,14 @@
 # GNU General Public License version 2 or any later version.
 
 '''store class for local filesystem'''
+from __future__ import absolute_import
 
 from mercurial.i18n import _
 
-import lfutil
-import basestore
+from . import (
+    basestore,
+    lfutil,
+)
 
 class localstore(basestore.basestore):
     '''localstore first attempts to grab files out of the store in the remote
--- a/tests/test-check-py3-compat.t	Tue May 10 15:09:22 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 14:20:51 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/localstore.py not using absolute_import
   hgext/largefiles/overrides.py not using absolute_import
   hgext/largefiles/proto.py not using absolute_import
   hgext/largefiles/remotestore.py not using absolute_import