summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterryjreedy <tjreedy@udel.edu>2017-06-11 10:26:25 (GMT)
committerGitHub <noreply@github.com>2017-06-11 10:26:25 (GMT)
commit59422a29ee3a95866c4f7e037bdfffd5768afddd (patch)
tree28f75439d78ef5e21efb96302b66dc72b5eb9b4c
parenta13225e209cfa5f7b458dbcbac19dc4df26feb95 (diff)
downloadcpython-59422a29ee3a95866c4f7e037bdfffd5768afddd.zip
cpython-59422a29ee3a95866c4f7e037bdfffd5768afddd.tar.gz
cpython-59422a29ee3a95866c4f7e037bdfffd5768afddd.tar.bz2
[3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107)
Part of patch by Serhiy Storchaka. (cherry-pick from 55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0)
-rw-r--r--Lib/idlelib/run.py2
1 files changed, 1 insertions, 1 deletions
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