summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-08-04 12:52:58 +1200
committerRobert Collins <rbtcollins@hp.com>2015-08-04 12:52:58 +1200
commita5ffba00ab9fe5c25f9b9bd5a8406836e921b520 (patch)
tree8fc18fc4edaa47e161b085e9e713a02e7a75097d
parentac5e87caff7276fe347f14b3f5e95158d5f324b9 (diff)
parent1f9a29f31b8e21997310206fd88d7ad0ca74c4f5 (diff)
downloadcpython-git-a5ffba00ab9fe5c25f9b9bd5a8406836e921b520.tar.gz
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 eada0a9132..a7fd017e10 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 702883fa3b..dec1042a15 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