diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 21:35:18 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-12-17 21:35:18 (GMT) |
commit | 3438fa496db50ef3cafcfdb3243f2f769bc12ebe (patch) | |
tree | 8c480821ca46d7d91d4f3ba8c8343afe389d7208 /Lib/urllib | |
parent | 6eda46de99189812e6982f568bbe941346918964 (diff) | |
download | cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.zip cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.gz cpython-3438fa496db50ef3cafcfdb3243f2f769bc12ebe.tar.bz2 |
Get rig of EnvironmentError (#16705)
Diffstat (limited to 'Lib/urllib')
-rw-r--r-- | Lib/urllib/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index ef4bf7f..d8439b3 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -232,7 +232,7 @@ def urlcleanup(): for temp_file in _url_tempfiles: try: os.unlink(temp_file) - except EnvironmentError: + except OSError: pass del _url_tempfiles[:] |