# HG changeset patch # User Gregory Szorc # Date 1449991042 28800 # Node ID a56c47ed3885c930c4bff97898eeb933c5279b68 # Parent ac839ee45b6a5b178a380aa6d90aaa454dbb05b0 similar: use absolute_import diff -r ac839ee45b6a -r a56c47ed3885 mercurial/similar.py --- 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 diff -r ac839ee45b6a -r a56c47ed3885 tests/test-check-py3-compat.t --- 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