Skip to content

Commit 59422a2

Browse files
authored
[3.6]bpo-30022: idlelib.run IOError -> OSError [GH-1051] (#2107)
Part of patch by Serhiy Storchaka. (cherry-pick from 55fe1ae)
1 parent a13225e commit 59422a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/idlelib/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def idle_showwarning_subproc(
5252
try:
5353
file.write(idle_formatwarning(
5454
message, category, filename, lineno, line))
55-
except IOError:
55+
except OSError:
5656
pass # the file (probably stderr) is invalid - this warning gets lost.
5757

5858
_warnings_showwarning = None

0 commit comments

Comments
 (0)