Jeff McNeil <j...@jmcneil.net> added the comment:

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.

----------
keywords: +patch
Added file: http://bugs.python.org/file21285/issue10050.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10050>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to