]> granicus.if.org Git - python/commitdiff
[3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107)
authorterryjreedy <tjreedy@udel.edu>
Sun, 11 Jun 2017 10:26:25 +0000 (06:26 -0400)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2017 10:26:25 +0000 (06:26 -0400)
Part of patch by Serhiy Storchaka.
(cherry-pick from 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0)

Lib/idlelib/run.py

index afa9744a346c92bd0c071259b930af3772a429e9..12c339f1058b72b2f46af5be9f44cce78d36f513 100644 (file)
@@ -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