# HG changeset patch # User Gregory Szorc # Date 1455067838 28800 # Node ID 8113c88b8e6dece3c2c7f3818dac5e58c2e57302 # Parent a1163ee26e4a94d713f2355c90f4c317fb4e9494 blackbox: use absolute_import diff -r a1163ee26e4a -r 8113c88b8e6d hgext/blackbox.py --- a/hgext/blackbox.py Tue Feb 09 17:29:39 2016 -0800 +++ b/hgext/blackbox.py Tue Feb 09 17:30:38 2016 -0800 @@ -29,9 +29,16 @@ """ -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 -r a1163ee26e4a -r 8113c88b8e6d tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Tue Feb 09 17:29:39 2016 -0800 +++ b/tests/test-check-py3-compat.t Tue Feb 09 17:30:38 2016 -0800 @@ -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