[issue12638] urllib.URLopener prematurely deletes files on cleanup
Senthil Kumaran
report at bugs.python.org
Mon Jul 25 17:47:23 CEST 2011
Senthil Kumaran <senthil at uthcode.com> added the comment:
urlretrieve is a helper function from urllib module. The way to use
it is:
('/tmp/tmpe873xe', <http.client.HTTPMessage object at 0xb72c2f6c>)
>>> import os
>>> os.stat('/tmp/tmpe873xe')
posix.stat_result(st_mode=33152, st_ino=4462517, st_dev=2054,
st_nlink=1, st_uid=1000, st_gid=1000, st_size=33128,
st_atime=1311608669, st_mtime=1311608670, st_ctime=1311608670)
Works properly for me 3.3 and 2.7. Is there any service that is
running on your machine that deleting the tmp files as soon as they
are created?
----------
nosy: +orsenthil
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12638>
_______________________________________
More information about the Python-bugs-list
mailing list