[Python-bugs-list] [ python-Bugs-745097 ] urllib2 doesn't handle urls without scheme

SourceForge.net noreply@sourceforge.net
Wed, 28 May 2003 11:54:10 -0700


Bugs item #745097, was opened at 2003-05-28 20:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745097&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2 doesn't handle urls without scheme

Initial Comment:
urllib2.urlopen does not handle URLs without a scheme, so the 
following code will not work:
    url = urllib.pathname2url('/etc/passwd')
    urllib2.urlopen(url)
The same code does work with urllib.urlopen.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745097&group_id=5470