blackbox: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 09 Feb 2016 17:30:38 -0800
changeset 28090 8113c88b8e6d
parent 28089 a1163ee26e4a
child 28091 2f0384242b35
blackbox: use absolute_import
hgext/blackbox.py
tests/test-check-py3-compat.t
--- 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)
--- 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