From: Guido van Rossum Date: Mon, 15 Mar 1999 16:16:29 +0000 (+0000) Subject: Yet another patch by Sjoerd Mullender: X-Git-Tag: v1.5.2c1~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3764595c980ccba821a29947dbef14947b71825e;p=thirdparty%2FPython%2Fcpython.git Yet another patch by Sjoerd Mullender: Don't convert URLs to URLs using pathname2url. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index a4847365e12c..c3da7bfe004e 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -326,12 +326,12 @@ class URLopener: host, file = splithost(url) if not host: return addinfourl(open(url2pathname(file), 'rb'), - headers, 'file:'+pathname2url(file)) + headers, 'file:'+file) host, port = splitport(host) if not port \ and socket.gethostbyname(host) in (localhost(), thishost()): return addinfourl(open(url2pathname(file), 'rb'), - headers, 'file:'+pathname2url(file)) + headers, 'file:'+file) raise IOError, ('local file error', 'not on local host') # Use FTP protocol