Message131369
| Author |
mcjeff |
| Recipients |
eric.araujo, jhylton, mcjeff, nadeem.vawda, orsenthil, pitrou |
| Date |
2011年03月18日.22:57:46 |
| SpamBayes Score |
1.1026509e-06 |
| Marked as misclassified |
No |
| Message-id |
<1300489069.7.0.171565083256.issue10050@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Alright, attaching a patch that reworks urlretrieve to use urlopen internal to urllib.request.
1. I dropped the local caching as it isn't turned on by default anyway (and isn't really documented).
2. Updated documentation to reflect caching changes & make urlretrieve part of the official API again.
3. Kept the urlcleanup function, but use a global list to track temporary files. I'd be happy to change this functionality if that makes sense.
4. After moving the urlretrieve stuff out of test_urllibnet, I realized that file didn't serve much of a purpose any longer, so I just removed it.
5. Updated NEWS.
I'd be happy to rework any of this in order to bring it up to stuff. Comments and suggestions are very much welcomed. |
|