Message 100175 - Python tracker
Message100175
| Author | orsenthil |
|---|---|
| Recipients | albert, orsenthil |
| Date | 2010-02-26.21:17:27 |
| SpamBayes Score | 2.9145476e-05 |
| Marked as misclassified | No |
| Message-id | <1267219049.36.0.754939050502.issue6631@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The bug here seems to me that urllib.urlopen() should not allow a relative file path like the one specified. f='./rel/path/to/file.html urllib2's behavior seems proper that it is raising an Exception. According to the RFCs the local files are to be acceessed by: file://localhost/path/to/file file:///path/to/file Both are absolute paths to the file where in the second one localhost is omitted. Let me see if urllib's urlopen be made a little stricter. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2010-02-26 21:17:29 | orsenthil | set | recipients: + orsenthil, albert |
| 2010-02-26 21:17:29 | orsenthil | set | messageid: <1267219049.36.0.754939050502.issue6631@psf.upfronthosting.co.za> |
| 2010-02-26 21:17:27 | orsenthil | link | issue6631 messages |
| 2010-02-26 21:17:27 | orsenthil | create | |