[PATCH 09 of 17 V2] py3: make largefiles/remotestore.py use absolute_import
liscju
piotr.listkiewicz at gmail.com
Thu May 12 10:20:31 UTC 2016
# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462885222 -7200
# Tue May 10 15:00:22 2016 +0200
# Node ID 140e725d2557e88dddf9e5a1b49a53b620d8e45d
# Parent 2aa19d9da52236a331d3df2c4551ea5ef12cc996
py3: make largefiles/remotestore.py use absolute_import
diff -r 2aa19d9da522 -r 140e725d2557 hgext/largefiles/remotestore.py
--- a/hgext/largefiles/remotestore.py Tue May 10 14:41:58 2016 +0200
+++ b/hgext/largefiles/remotestore.py Tue May 10 15:00:22 2016 +0200
@@ -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,
+ storeutil,
+)
+
urlerr = util.urlerr
urlreq = util.urlreq
-import storeutil
-import basestore
-
class remotestore(basestore.basestore):
'''a largefile store accessed over a network'''
def __init__(self, ui, repo, url):
diff -r 2aa19d9da522 -r 140e725d2557 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Tue May 10 14:41:58 2016 +0200
+++ b/tests/test-check-py3-compat.t Tue May 10 15:00:22 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/remotestore.py not using absolute_import
hgext/largefiles/reposetup.py not using absolute_import
hgext/largefiles/storeutil.py not using absolute_import
hgext/largefiles/uisetup.py not using absolute_import
More information about the Mercurial-devel
mailing list