Issue #24021: docstring for urllib.urlcleanup.

Patch from Daniel Andrade Groppe and Peter Lovett
This commit is contained in:
Robert Collins 2015-08-04 12:52:43 +12:00
commit 1f9a29f31b
2 changed files with 3 additions and 0 deletions

View File

@ -230,6 +230,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)

View File

@ -518,6 +518,7 @@ Duncan Grisby
Olivier Grisel
Fabian Groffen
Eric Groo
Daniel Andrade Groppe
Dag Gruneau
Filip Gruszczyński
Thomas Guettler
@ -860,6 +861,7 @@ Anne Lord
Tom Loredo
Justin Love
Ned Jackson Lovely
Peter Lovett
Chalmer Lowe
Jason Lowe
Tony Lownds