From 3438fa496db50ef3cafcfdb3243f2f769bc12ebe Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Mon, 17 Dec 2012 23:35:18 +0200 Subject: Get rig of EnvironmentError (#16705) --- Lib/urllib/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/urllib/request.py') diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index ef4bf7fb63b..d8439b3a428 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[:] -- cgit v1.2.3