diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -29,9 +29,16 @@ Examples:: """ -from mercurial import util, cmdutil +from __future__ import absolute_import + +import errno +import re + from mercurial.i18n import _ -import errno, re +from mercurial import ( + cmdutil, + util, +) cmdtable = {} command = cmdutil.command(cmdtable) 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 @@ -32,7 +32,6 @@ doc/gendoc.py not using absolute_import doc/hgmanpage.py not using absolute_import hgext/__init__.py not using absolute_import - hgext/blackbox.py not using absolute_import hgext/bugzilla.py not using absolute_import hgext/censor.py not using absolute_import hgext/children.py not using absolute_import