[PATCH 09 of 16 V3] py3: make largefiles/remotestore.py use absolute_import
liscju
piotr.listkiewicz at gmail.com
Sat Jun 4 11:23:35 EDT 2016
# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462885222 -7200
# Tue May 10 15:00:22 2016 +0200
# Node ID f2689ff159eb037e38ee3eb45972262d3d2a52aa
# Parent 3983a5ce957b0893bf3a743a08935adfcd18de07
py3: make largefiles/remotestore.py use absolute_import
diff --git a/hgext/largefiles/remotestore.py b/hgext/largefiles/remotestore.py
--- a/hgext/largefiles/remotestore.py
+++ b/hgext/largefiles/remotestore.py
@@ -5,16 +5,24 @@
# GNU General Public License version 2 or any later version.
'''remote largefile store; the base class for wirestore'''
+from __future__ import absolute_import
-from mercurial import util, wireproto, error
from mercurial.i18n import _
+from mercurial import (
+ error,
+ util,
+ wireproto,
+)
+
+from . import (
+ basestore,
+ lfutil,
+)
+
urlerr = util.urlerr
urlreq = util.urlreq
-import lfutil
-import basestore
-
class remotestore(basestore.basestore):
'''a largefile store accessed over a network'''
def __init__(self, ui, repo, url):
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/remotestore.py not using absolute_import
hgext/largefiles/reposetup.py not using absolute_import
hgext/largefiles/uisetup.py not using absolute_import
hgext/largefiles/wirestore.py not using absolute_import
More information about the Mercurial-devel
mailing list