comparison mercurial/pycompat.py @ 31573:55c6788c54e2

py3: stop exporting urlparse from pycompat and util (API) There are no consumers of this in tree. Functions formerly available on this object/module can now be accessed via {pycompat,util}.urlreq.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 21 Mar 2017 22:47:49 -0700
parents e68932dfbb55
children 7d2cbe11ae48
comparison
equal deleted inserted replaced
31572:c0c4e14ee597 31573:55c6788c54e2
20 if not ispy3: 20 if not ispy3:
21 import cPickle as pickle 21 import cPickle as pickle
22 import httplib 22 import httplib
23 import Queue as _queue 23 import Queue as _queue
24 import SocketServer as socketserver 24 import SocketServer as socketserver
25 import urlparse
26 import xmlrpclib 25 import xmlrpclib
27 else: 26 else:
28 import http.client as httplib 27 import http.client as httplib
29 import pickle 28 import pickle
30 import queue as _queue 29 import queue as _queue
31 import socketserver 30 import socketserver
32 import urllib.parse as urlparse
33 import xmlrpc.client as xmlrpclib 31 import xmlrpc.client as xmlrpclib
34 32
35 if ispy3: 33 if ispy3:
36 import builtins 34 import builtins
37 import functools 35 import functools