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 local > file open methods of urllib2 and urllib are different. > Yes, it seems to be a bug in urllib which permits an invalid URL to pass. I came across it by accident, I normally use urls like file://localhost/tmp/hello.txt so I don't trip over the /// hurdles :-) I'll raise an issue on the tracker. Regards, Vinay Sajip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4