Mercurial > hg
comparison hgext/bugzilla.py @ 29431:80880ad3fccd
py3: conditionalize the urlparse import
The urlparse library is renamed to urllib.parse in python 3
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 27 Jun 2016 16:16:10 +0530 |
parents | 9e1c9f016b72 |
children | 34b914ac573e |
comparison
equal
deleted
inserted
replaced
29430:72065b3b90a4 | 29431:80880ad3fccd |
---|---|
279 | 279 |
280 from __future__ import absolute_import | 280 from __future__ import absolute_import |
281 | 281 |
282 import re | 282 import re |
283 import time | 283 import time |
284 import urlparse | |
285 import xmlrpclib | 284 import xmlrpclib |
286 | 285 |
287 from mercurial.i18n import _ | 286 from mercurial.i18n import _ |
288 from mercurial.node import short | 287 from mercurial.node import short |
289 from mercurial import ( | 288 from mercurial import ( |
290 cmdutil, | 289 cmdutil, |
291 error, | 290 error, |
292 mail, | 291 mail, |
293 util, | 292 util, |
294 ) | 293 ) |
294 | |
295 urlparse = util.urlparse | |
295 | 296 |
296 # Note for extension authors: ONLY specify testedwith = 'internal' for | 297 # Note for extension authors: ONLY specify testedwith = 'internal' for |
297 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 298 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
298 # be specifying the version(s) of Mercurial they are tested with, or | 299 # be specifying the version(s) of Mercurial they are tested with, or |
299 # leave the attribute unspecified. | 300 # leave the attribute unspecified. |