diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-06-08 00:22:45 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-06-08 00:22:45 -0400 |
commit | 7ae10d05a8fc7309c56f0f26002487781c6c01ee (patch) | |
tree | 67db98da144df52fd6c15b8b15c7e621e13543fc /Lib/idlelib/IOBinding.py | |
parent | 4eec4281f749de2f14d6621f07966fcc19c947d2 (diff) | |
download | cpython-7ae10d05a8fc7309c56f0f26002487781c6c01ee.tar.gz |
#18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
changing IOError to OSError (#16715).
Diffstat (limited to 'Lib/idlelib/IOBinding.py')
-rw-r--r-- | Lib/idlelib/IOBinding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 9fe0701133..37a11ad6ad 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -213,7 +213,7 @@ class IOBinding: f.seek(0) bytes = f.read() f.close() - except IOError as msg: + except OSError as msg: tkMessageBox.showerror("I/O Error", str(msg), master=self.text) return False chars, converted = self._decode(two_lines, bytes) @@ -378,7 +378,7 @@ class IOBinding: f.flush() f.close() return True - except IOError as msg: + except OSError as msg: tkMessageBox.showerror("I/O Error", str(msg), master=self.text) return False |