diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-08-04 00:52:06 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-08-04 00:52:06 (GMT) |
commit | 2fee5c9367556301a3cfba3202cb71808d01bc81 (patch) | |
tree | 7da1b4d0ed29bc6aa729c977dbde5712f65211d9 /Lib | |
parent | 7e220c082b3d23fdfb929332df83d2f917fc8eb2 (diff) | |
download | cpython-2fee5c9367556301a3cfba3202cb71808d01bc81.zip cpython-2fee5c9367556301a3cfba3202cb71808d01bc81.tar.gz cpython-2fee5c9367556301a3cfba3202cb71808d01bc81.tar.bz2 |
Issue #24021: docstring for urllib.urlcleanup.
Patch from Daniel Andrade Groppe and Peter Lovett
Diffstat (limited to 'Lib')
-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 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) |