Not top-posting, but gmane seems too finicky in this area.
I encountered what seems like an incompatibility between urllib and urllib2 in
the way they handle file:// URLs, is this a bug? I had a look on the bug tracker
and via Google to see if there were prior reports, but perhaps my search-fu
On Mon, May 24, 2010 at 08:49:56AM +, Vinay Sajip wrote:
I encountered what seems like an incompatibility between urllib and urllib2 in
the way they handle file:// URLs, is this a bug? I had a look on the bug
tracker
s = 'file:tmp/hello.txt'
f1 = urllib.urlopen(s)
The actual (and
Senthil Kumaran orsenthil at gmail.com writes:
The actual (and Valid) file:// url in your case is 'file:///tmp/hello.txt'
And this was fine and consistent.
The extra '/' is making it in invalid url in urllib2, I think that be
tracked as bug at least to show a consistent behaviour. The