[issue12638] urllib.URLopener prematurely deletes files on cleanup
Carl
report at bugs.python.org
Mon Jul 25 18:57:51 CEST 2011
Carl <carl at carlbook.com> added the comment:
@orsenthil, that is the correct behavior if you do not want to override any of URLopener's handlers for error codes. In my case, I wanted to override FancyURLopener (a child class of URLopener) to override HTTP 401 behavior. Using urlretrieve is not correct in this case.
Also included python 3.2 code, I didn't test 3.1.
----------
Added file: http://bugs.python.org/file22752/bug3.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12638>
_______________________________________
More information about the Python-bugs-list
mailing list