comparison hgext/bugzilla.py @ 29432:34b914ac573e

py3: conditionalize xmlrpclib import The xmlrpclib library is renamed to xmlrpc.client in python 3
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 27 Jun 2016 16:37:37 +0530
parents 80880ad3fccd
children d5883fd055c6
comparison
equal deleted inserted replaced
29431:80880ad3fccd 29432:34b914ac573e
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 xmlrpclib
285 284
286 from mercurial.i18n import _ 285 from mercurial.i18n import _
287 from mercurial.node import short 286 from mercurial.node import short
288 from mercurial import ( 287 from mercurial import (
289 cmdutil, 288 cmdutil,
291 mail, 290 mail,
292 util, 291 util,
293 ) 292 )
294 293
295 urlparse = util.urlparse 294 urlparse = util.urlparse
295 xmlrpclib = util.xmlrpclib
296 296
297 # Note for extension authors: ONLY specify testedwith = 'internal' for 297 # Note for extension authors: ONLY specify testedwith = 'internal' for
298 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 298 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
299 # 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
300 # leave the attribute unspecified. 300 # leave the attribute unspecified.