From 2fee5c9367556301a3cfba3202cb71808d01bc81 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 4 Aug 2015 12:52:06 +1200 Subject: [PATCH] Issue #24021: docstring for urllib.urlcleanup. Patch from Daniel Andrade Groppe and Peter Lovett --- Lib/urllib/request.py | 1 + Misc/ACKS | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 5cf0cf2e86a1..376bba40791f 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 88072c1155ad..5b6a11e0e11b 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 -- 2.47.3