summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-04 00:52:43 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-08-04 00:52:43 (GMT)
commit1f9a29f31b8e21997310206fd88d7ad0ca74c4f5 (patch)
treeedda38cc2490ff85bafd5657f7421684c38c7895
parent132aecb142dc91b515d36bedd5d7aebd01140fb7 (diff)
parent2fee5c9367556301a3cfba3202cb71808d01bc81 (diff)
downloadcpython-1f9a29f31b8e21997310206fd88d7ad0ca74c4f5.zip
cpython-1f9a29f31b8e21997310206fd88d7ad0ca74c4f5.tar.gz
cpython-1f9a29f31b8e21997310206fd88d7ad0ca74c4f5.tar.bz2
Issue #24021: docstring for urllib.urlcleanup.
Patch from Daniel Andrade Groppe and Peter Lovett
-rw-r--r--Lib/urllib/request.py1
-rw-r--r--Misc/ACKS2
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index eada0a9..a7fd017 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -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)
diff --git a/Misc/ACKS b/Misc/ACKS
index 88ff20a..00f19d0 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -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