diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-08-04 12:52:06 +1200 |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-08-04 12:52:06 +1200 |
commit | 4be0076f98bab2dca18bb33c76da5a073aece589 (patch) | |
tree | ae2fe7acb0e57060d675d245eec1c8a264056213 /Lib/urllib/request.py | |
parent | 6dc8e3b12b86231299dfff11a2b286db42a164bb (diff) | |
download | cpython-4be0076f98bab2dca18bb33c76da5a073aece589.tar.gz |
Issue #24021: docstring for urllib.urlcleanup.
Patch from Daniel Andrade Groppe and Peter Lovett
Diffstat (limited to 'Lib/urllib/request.py')
-rw-r--r-- | Lib/urllib/request.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 5cf0cf2e86..376bba4079 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) |