py3: stop exporting urlparse from pycompat and util (API)
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 21 Mar 2017 22:47:49 -0700
changeset 31573 55c6788c54e2
parent 31572 c0c4e14ee597
child 31574 a8e55d6f1d67
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.
mercurial/pycompat.py
mercurial/util.py
--- a/mercurial/pycompat.py	Tue Mar 21 22:46:17 2017 -0700
+++ b/mercurial/pycompat.py	Tue Mar 21 22:47:49 2017 -0700
@@ -22,14 +22,12 @@
     import httplib
     import Queue as _queue
     import SocketServer as socketserver
-    import urlparse
     import xmlrpclib
 else:
     import http.client as httplib
     import pickle
     import queue as _queue
     import socketserver
-    import urllib.parse as urlparse
     import xmlrpc.client as xmlrpclib
 
 if ispy3:
--- a/mercurial/util.py	Tue Mar 21 22:46:17 2017 -0700
+++ b/mercurial/util.py	Tue Mar 21 22:47:49 2017 -0700
@@ -60,7 +60,6 @@
 stdout = pycompat.stdout
 stringio = pycompat.stringio
 urlerr = pycompat.urlerr
-urlparse = pycompat.urlparse
 urlreq = pycompat.urlreq
 xmlrpclib = pycompat.xmlrpclib