summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
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 /Lib/urllib
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
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/request.py1
1 files changed, 1 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)