summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/IOBinding.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-06-08 04:22:45 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-06-08 04:22:45 (GMT)
commitba6c0d3b08768b1a6b9bebba5eeead840fdc9356 (patch)
tree43af5a771d5a7db76050f041c804d85fe93e08cf /Lib/idlelib/IOBinding.py
parent50793b44382e8d2bdd3a89a0c1ecd8eb97093e22 (diff)
downloadcpython-ba6c0d3b08768b1a6b9bebba5eeead840fdc9356.zip
cpython-ba6c0d3b08768b1a6b9bebba5eeead840fdc9356.tar.gz
cpython-ba6c0d3b08768b1a6b9bebba5eeead840fdc9356.tar.bz2
#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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py
index 9fe0701..37a11ad 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