changeset 27359:a56c47ed3885

similar: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 12 Dec 2015 23:17:22 -0800
parents ac839ee45b6a
children 6daa795ed32f
files mercurial/similar.py tests/test-check-py3-compat.t
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/similar.py	Sat Dec 12 23:14:08 2015 -0800
+++ b/mercurial/similar.py	Sat Dec 12 23:17:22 2015 -0800
@@ -5,10 +5,14 @@
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-from i18n import _
-import util
-import mdiff
-import bdiff
+from __future__ import absolute_import
+
+from .i18n import _
+from . import (
+    bdiff,
+    mdiff,
+    util,
+)
 
 def _findexactmatches(repo, added, removed):
     '''find renamed files that have no changes
--- a/tests/test-check-py3-compat.t	Sat Dec 12 23:14:08 2015 -0800
+++ b/tests/test-check-py3-compat.t	Sat Dec 12 23:17:22 2015 -0800
@@ -126,7 +126,6 @@
   mercurial/scmposix.py not using absolute_import
   mercurial/scmutil.py not using absolute_import
   mercurial/scmwindows.py not using absolute_import
-  mercurial/similar.py not using absolute_import
   mercurial/store.py not using absolute_import
   mercurial/windows.py not using absolute_import
   setup.py not using absolute_import