diff 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
line wrap: on
line diff
--- a/hgext/bugzilla.py	Mon Jun 27 16:16:10 2016 +0530
+++ b/hgext/bugzilla.py	Mon Jun 27 16:37:37 2016 +0530
@@ -281,7 +281,6 @@
 
 import re
 import time
-import xmlrpclib
 
 from mercurial.i18n import _
 from mercurial.node import short
@@ -293,6 +292,7 @@
 )
 
 urlparse = util.urlparse
+xmlrpclib = util.xmlrpclib
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should