[Python-Dev] urllib2/urllib incompatibility?

2010-05-24 Thread Vinay Sajip
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

Re: [Python-Dev] urllib2/urllib incompatibility?

2010-05-24 Thread Senthil Kumaran
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

Re: [Python-Dev] urllib2/urllib incompatibility?

2010-05-24 Thread Vinay Sajip
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