Mercurial > hg
diff tests/tinyproxy.py @ 29431:80880ad3fccd
py3: conditionalize the urlparse import
The urlparse library is renamed to urllib.parse in python 3
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 27 Jun 2016 16:16:10 +0530 |
parents | 256d90bb12fa |
children | 33770d2b6cf9 |
line wrap: on
line diff
--- a/tests/tinyproxy.py Mon Jun 27 15:53:38 2016 +0530 +++ b/tests/tinyproxy.py Mon Jun 27 16:16:10 2016 +0530 @@ -20,7 +20,10 @@ import select import socket import sys -import urlparse + +from mercurial import util + +urlparse = util.urlparse class ProxyHandler (BaseHTTPServer.BaseHTTPRequestHandler): __base = BaseHTTPServer.BaseHTTPRequestHandler