[PATCH 06 of 17 V2] py3: make largefiles/localstore.py use absolute_import

liscju piotr.listkiewicz at gmail.com
Thu May 12 06:20:28 EDT 2016


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462882851 -7200
#      Tue May 10 14:20:51 2016 +0200
# Node ID eef8830ecb06eef9b4c99199cd639a30faf351af
# Parent  8c947a3fa1c74e9d73c73ccdc29ac2ce0d7ece20
py3: make largefiles/localstore.py use absolute_import

diff -r 8c947a3fa1c7 -r eef8830ecb06 hgext/largefiles/localstore.py
--- a/hgext/largefiles/localstore.py	Sat May 07 15:44:46 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 storeutil
-import basestore
+from . import (
+    basestore,
+    storeutil,
+)
 
 class localstore(basestore.basestore):
     '''localstore first attempts to grab files out of the store in the remote
diff -r 8c947a3fa1c7 -r eef8830ecb06 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sat May 07 15:44:46 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 14:20:51 2016 +0200
@@ -10,7 +10,6 @@
   hgext/hgcia.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


More information about the Mercurial-devel mailing list