[PATCH 04 of 17 V2] py3: make largefiles/basestore.py use absolute_import

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


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462537823 -7200
#      Fri May 06 14:30:23 2016 +0200
# Node ID c4ca1e65926ce69a55603e12db08b6b3ddfed6d3
# Parent  487f693cca8095c4189fba16daaa33683fe1313d
py3: make largefiles/basestore.py use absolute_import

diff -r 487f693cca80 -r c4ca1e65926c hgext/largefiles/basestore.py
--- 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,16 @@
 # 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 storeutil
+from mercurial import (
+    node,
+    util,
+)
+
+from . import storeutil
 
 class StoreError(Exception):
     '''Raised when there is a problem getting files from or putting
diff -r 487f693cca80 -r c4ca1e65926c tests/test-check-py3-compat.t
--- 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/hgcia.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/localstore.py not using absolute_import
   hgext/largefiles/overrides.py not using absolute_import


More information about the Mercurial-devel mailing list