[PATCH 13 of 17 V2] py3: make largefiles/wirestore.py use absolute_import

liscju piotr.listkiewicz at gmail.com
Thu May 12 06:20:35 EDT 2016


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462886404 -7200
#      Tue May 10 15:20:04 2016 +0200
# Node ID a048e92f44e824f158e7918f12c82fac8a83d086
# Parent  4cb0bab46f0c1daad103bacff1853a265da7f1a2
py3: make largefiles/wirestore.py use absolute_import

diff -r 4cb0bab46f0c -r a048e92f44e8 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 4cb0bab46f0c -r a048e92f44e8 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