changeset 29310:f89f83c8393a

py3: make largefiles/localstore.py use absolute_import
author liscju <piotr.listkiewicz@gmail.com>
date Tue, 10 May 2016 14:20:51 +0200
parents bfc1052570b6
children b76abae75161
files hgext/largefiles/localstore.py tests/test-check-py3-compat.t
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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