changeset 29316:28dfcf3d0ad3

py3: make largefiles/wirestore.py use absolute_import
author liscju <piotr.listkiewicz@gmail.com>
date Tue, 10 May 2016 15:20:04 +0200
parents 2143266ecb65
children 5ec25534ef4f
files hgext/largefiles/wirestore.py tests/test-check-py3-compat.t
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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