[PATCH 03 of 16 V3] py3: make largefiles/basestore.py use absolute_import
liscju
piotr.listkiewicz at gmail.com
Sat Jun 4 11:23:29 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 dc6ed90f75e36154286a57230e78ee346e2ea058
# Parent 8df452a3387dfd47f901665b34b19d1a11cabe7d
py3: make largefiles/basestore.py use absolute_import
diff --git a/hgext/largefiles/basestore.py b/hgext/largefiles/basestore.py
--- a/hgext/largefiles/basestore.py
+++ b/hgext/largefiles/basestore.py
@@ -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
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -9,7 +9,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
More information about the Mercurial-devel
mailing list