Mercurial > hg
diff mercurial/hgweb/server.py @ 28883:032c4c2f802a
pycompat: switch to util.urlreq/util.urlerr for py3 compat
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 06 Apr 2016 23:22:12 +0000 |
parents | 37fcfe52c68c |
children | 33770d2b6cf9 |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Thu Apr 07 00:05:48 2016 +0000 +++ b/mercurial/hgweb/server.py Wed Apr 06 23:22:12 2016 +0000 @@ -15,7 +15,6 @@ import socket import sys import traceback -import urllib from ..i18n import _ @@ -24,6 +23,9 @@ util, ) +urlerr = util.urlerr +urlreq = util.urlreq + from . import ( common, ) @@ -38,7 +40,7 @@ path, query = uri.split('?', 1) else: path, query = uri, '' - return urllib.unquote(path), query + return urlreq.unquote(path), query class _error_logger(object): def __init__(self, handler):