Mercurial > hg
changeset 30327:e0d9b6aab4c5
pycompat: introduce an alias for urllib.unquote
We have to use unquote_to_bytes on Python 3, so we need an abstraction
for this.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 09 Oct 2016 09:02:25 -0400 |
parents | eac5c1737f79 |
children | 2d996af02fd8 |
files | mercurial/pycompat.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/pycompat.py Mon Oct 17 17:42:46 2016 +0200 +++ b/mercurial/pycompat.py Sun Oct 09 09:02:25 2016 -0400 @@ -22,6 +22,7 @@ import Queue as _queue import SocketServer as socketserver import urlparse + urlunquote = urlparse.unquote import xmlrpclib else: import http.client as httplib @@ -30,6 +31,7 @@ import queue as _queue import socketserver import urllib.parse as urlparse + urlunquote = urlparse.unquote_to_bytes import xmlrpc.client as xmlrpclib if ispy3: