py3: make largefiles/wirestore.py use absolute_import
authorliscju <piotr.listkiewicz@gmail.com>
Tue, 10 May 2016 15:20:04 +0200
changeset 29316 28dfcf3d0ad3
parent 29315 2143266ecb65
child 29317 5ec25534ef4f
py3: make largefiles/wirestore.py use absolute_import
hgext/largefiles/wirestore.py
tests/test-check-py3-compat.t
--- 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 lfutil
-import remotestore
+from . import (
+    lfutil,
+    remotestore,
+)
 
 class wirestore(remotestore.remotestore):
     def __init__(self, ui, repo, remote):
--- 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/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/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