changeset 29307:67999697221a

py3: make largefiles/basestore.py use absolute_import
author liscju <piotr.listkiewicz@gmail.com>
date Fri, 06 May 2016 14:30:23 +0200
parents 83cecc0b991f
children 8c378a7d2aa6
files hgext/largefiles/basestore.py tests/test-check-py3-compat.t
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/basestore.py	Fri May 06 14:28:32 2016 +0200
+++ b/hgext/largefiles/basestore.py	Fri May 06 14:30:23 2016 +0200
@@ -7,11 +7,13 @@
 # GNU General Public License version 2 or any later version.
 
 '''base class for store implementations and store-related utility code'''
+from __future__ import absolute_import
 
-from mercurial import util, node
 from mercurial.i18n import _
 
-import lfutil
+from mercurial import node, util
+
+from . import lfutil
 
 class StoreError(Exception):
     '''Raised when there is a problem getting files from or putting
--- a/tests/test-check-py3-compat.t	Fri May 06 14:28:32 2016 +0200
+++ b/tests/test-check-py3-compat.t	Fri May 06 14:30:23 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/basestore.py not using absolute_import
   hgext/largefiles/lfcommands.py not using absolute_import
   hgext/largefiles/lfutil.py not using absolute_import
   hgext/largefiles/localstore.py not using absolute_import