[PATCH 14 of 21 WIP-PY3K] similar: convert to absolute_import
Matthew Turk
matthewturk at gmail.com
Mon Oct 12 16:24:58 CDT 2015
# HG changeset patch
# User Matthew Turk <matthewturk at gmail.com>
# Date 1444684182 18000
# Mon Oct 12 16:09:42 2015 -0500
# Node ID 6a2fc2620905dbfd5aec3acc67183f8e8d7b9593
# Parent 0fdbb55fb060402592245304376e53194b93414c
similar: convert to absolute_import
diff -r 0fdbb55fb060 -r 6a2fc2620905 mercurial/similar.py
--- a/mercurial/similar.py Mon Oct 12 16:09:16 2015 -0500
+++ b/mercurial/similar.py Mon Oct 12 16:09:42 2015 -0500
@@ -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 (
+ util,
+ mdiff,
+ bdiff
+)
def _findexactmatches(repo, added, removed):
'''find renamed files that have no changes
More information about the Mercurial-devel
mailing list