mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
changing IOError to OSError (#16715).
This commit is contained in:
parent
50793b4438
commit
ba6c0d3b08
8 changed files with 18 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue