[PATCH 13 of 13] py3: make largefiles/wirestore.py use absolute_import
liscju
piotr.listkiewicz at gmail.com
Wed May 11 23:49:22 UTC 2016
# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462886404 -7200
# Tue May 10 15:20:04 2016 +0200
# Node ID 51ef841a8c25e96cc4cf64e912de6b373ee8ce3f
# Parent a6759feaab93e62e1f7283e69a7301fcc9b86dbe
py3: make largefiles/wirestore.py use absolute_import
diff -r a6759feaab93 -r 51ef841a8c25 hgext/largefiles/wirestore.py
--- a/hgext/largefiles/wirestore.py Tue May 10 15:14:41 2016 +0200
+++ b/hgext/largefiles/wirestore.py Tue May 10 15:20:04 2016 +0200
@@ -4,9 +4,12 @@
# GNU General Public License version 2 or any later version.
'''largefile store working over Mercurial's wire protocol'''
+from __future__ import absolute_import
-import storeutil
-import remotestore
+from . import (
+ remotestore,
+ storeutil,
+)
class wirestore(remotestore.remotestore):
def __init__(self, ui, repo, remote):
diff -r a6759feaab93 -r 51ef841a8c25 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Tue May 10 15:14:41 2016 +0200
+++ b/tests/test-check-py3-compat.t Tue May 10 15:20:04 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/wirestore.py not using absolute_import
hgext/share.py not using absolute_import
hgext/win32text.py not using absolute_import
i18n/check-translation.py not using absolute_import
More information about the Mercurial-devel
mailing list