Mercurial > hg-stable
changeset 28091:2f0384242b35
bugzilla: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 09 Feb 2016 17:31:50 -0800 |
parents | 8113c88b8e6d |
children | 5166b7a84b72 |
files | hgext/bugzilla.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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