diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -5,11 +5,21 @@ # 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 mdiff, parsers, error, revlog, util -import array, struct +from __future__ import absolute_import + +import array +import heapq import os -import heapq +import struct + +from .i18n import _ +from . import ( + error, + mdiff, + parsers, + revlog, + util, +) propertycache = util.propertycache diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -116,7 +116,6 @@ mercurial/lsprofcalltree.py not using absolute_import mercurial/lsprofcalltree.py requires print_function mercurial/mail.py requires print_function - mercurial/manifest.py not using absolute_import setup.py not using absolute_import tests/filterpyflakes.py requires print_function tests/generate-working-copy-states.py requires print_function