comparison mercurial/util.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 33770d2b6cf9
comparison
equal deleted inserted replaced
29431:80880ad3fccd 29432:34b914ac573e
52 'urlerr', 52 'urlerr',
53 'urlparse', 53 'urlparse',
54 # we do import urlreq, but we do it outside the loop 54 # we do import urlreq, but we do it outside the loop
55 #'urlreq', 55 #'urlreq',
56 'stringio', 56 'stringio',
57 'xmlrpclib',
57 ): 58 ):
58 globals()[attr] = getattr(pycompat, attr) 59 globals()[attr] = getattr(pycompat, attr)
59 60
60 # This line is to make pyflakes happy: 61 # This line is to make pyflakes happy:
61 urlreq = pycompat.urlreq 62 urlreq = pycompat.urlreq