changeset 28090:8113c88b8e6d

blackbox: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 09 Feb 2016 17:30:38 -0800
parents a1163ee26e4a
children 2f0384242b35
files hgext/blackbox.py tests/test-check-py3-compat.t
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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