bugzilla: use absolute_import
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 09 Feb 2016 17:31:50 -0800
changeset 28091 2f0384242b35
parent 28090 8113c88b8e6d
child 28092 5166b7a84b72
bugzilla: use absolute_import
hgext/bugzilla.py
tests/test-check-py3-compat.t
--- a/hgext/bugzilla.py	Tue Feb 09 17:30:38 2016 -0800
+++ b/hgext/bugzilla.py	Tue Feb 09 17:31:50 2016 -0800
@@ -277,10 +277,21 @@
     Changeset commit comment. Bug 1234.
 '''
 
+from __future__ import absolute_import
+
+import re
+import time
+import urlparse
+import xmlrpclib
+
 from mercurial.i18n import _
 from mercurial.node import short
-from mercurial import cmdutil, mail, util, error
-import re, time, urlparse, xmlrpclib
+from mercurial import (
+    cmdutil,
+    error,
+    mail,
+    util,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
--- a/tests/test-check-py3-compat.t	Tue Feb 09 17:30:38 2016 -0800
+++ b/tests/test-check-py3-compat.t	Tue Feb 09 17:31:50 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/bugzilla.py not using absolute_import
   hgext/censor.py not using absolute_import
   hgext/children.py not using absolute_import
   hgext/churn.py not using absolute_import