changeset 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 c0c4e14ee597
children a8e55d6f1d67
files mercurial/pycompat.py mercurial/util.py
diffstat 2 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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