Patchwork [8,of,8,py3] py3: stop exporting urlparse from pycompat and util (API)

login
register
mail settings
Submitter Gregory Szorc
Date March 22, 2017, 5:56 a.m.
Message ID <30c6ed61a0921cc1fddd.1490162205@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/19556/
State Accepted
Headers show

Comments

Gregory Szorc - March 22, 2017, 5:56 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1490161669 25200
#      Tue Mar 21 22:47:49 2017 -0700
# Node ID 30c6ed61a0921cc1fddd2c99a1db519f70934a24
# Parent  ec6ce29cad3eb47053b3f3296fb81bc0532ab9d9
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.

Patch

diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py
--- a/mercurial/pycompat.py
+++ b/mercurial/pycompat.py
@@ -22,14 +22,12 @@  if not ispy3:
     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:
diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -60,7 +60,6 @@  stdin = pycompat.stdin
 stdout = pycompat.stdout
 stringio = pycompat.stringio
 urlerr = pycompat.urlerr
-urlparse = pycompat.urlparse
 urlreq = pycompat.urlreq
 xmlrpclib = pycompat.xmlrpclib