summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-04 00:52:06 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-08-04 00:52:06 (GMT)
commit2fee5c9367556301a3cfba3202cb71808d01bc81 (patch)
tree7da1b4d0ed29bc6aa729c977dbde5712f65211d9
parent7e220c082b3d23fdfb929332df83d2f917fc8eb2 (diff)
downloadcpython-2fee5c9367556301a3cfba3202cb71808d01bc81.zip
cpython-2fee5c9367556301a3cfba3202cb71808d01bc81.tar.gz
cpython-2fee5c9367556301a3cfba3202cb71808d01bc81.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 5cf0cf2..376bba4 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -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)
diff --git a/Misc/ACKS b/Misc/ACKS
index 88072c1..5b6a11e 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -508,6 +508,7 @@ Duncan Grisby
Olivier Grisel
Fabian Groffen
Eric Groo
+Daniel Andrade Groppe
Dag Gruneau
Filip GruszczyƄski
Thomas Guettler
@@ -836,6 +837,7 @@ Anne Lord
Tom Loredo
Justin Love
Ned Jackson Lovely
+Peter Lovett
Jason Lowe
Tony Lownds
Ray Loyzaga