Issue #24021: docstring for urllib.urlcleanup.
Patch from Daniel Andrade Groppe and Peter Lovett
This commit is contained in:
parent
7e220c082b
commit
2fee5c9367
|
@ -229,6 +229,7 @@ def urlretrieve(url, filename=None, reporthook=None, data=None):
|
|||
return result
|
||||
|
||||
def urlcleanup():
|
||||
"""Clean up temporary files from urlretrieve calls."""
|
||||
for temp_file in _url_tempfiles:
|
||||
try:
|
||||
os.unlink(temp_file)
|
||||
|
|
Loading…
Reference in New Issue