From: terryjreedy Date: Sun, 11 Jun 2017 10:26:25 +0000 (-0400) Subject: [3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107) X-Git-Tag: v3.6.2rc1~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59422a29ee3a95866c4f7e037bdfffd5768afddd;p=thirdparty%2FPython%2Fcpython.git [3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107) Part of patch by Serhiy Storchaka. (cherry-pick from 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0) --- diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index afa9744a346c..12c339f1058b 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