Mercurial > hg
changeset 29313:0ccab84f9630
py3: make largefiles/remotestore.py use absolute_import
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Tue, 10 May 2016 15:00:22 +0200 |
parents | 29139be0ccc7 |
children | bde283a1ad1a |
files | hgext/largefiles/remotestore.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 13 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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,17 +5,25 @@ # 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, + localstore, +) + urlerr = util.urlerr urlreq = util.urlreq -import lfutil -import basestore -import localstore - class remotestore(basestore.basestore): '''a largefile store accessed over a network''' def __init__(self, ui, repo, url):
--- 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/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