From 59422a29ee3a95866c4f7e037bdfffd5768afddd Mon Sep 17 00:00:00 2001 From: terryjreedy Date: Sun, 11 Jun 2017 06:26:25 -0400 Subject: [3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107) Part of patch by Serhiy Storchaka. (cherry-pick from 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0) --- Lib/idlelib/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index afa9744..12c339f 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -52,7 +52,7 @@ def idle_showwarning_subproc( try: file.write(idle_formatwarning( message, category, filename, lineno, line)) - except IOError: + except OSError: pass # the file (probably stderr) is invalid - this warning gets lost. _warnings_showwarning = None -- cgit v0.12