mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #16719: Get rid of WindowsError. Use OSError instead
Patch by Serhiy Storchaka.
This commit is contained in:
parent
8a045cb93b
commit
2606a6f197
28 changed files with 79 additions and 87 deletions
|
@ -536,7 +536,7 @@ class EditorWindow(object):
|
|||
if sys.platform[:3] == 'win':
|
||||
try:
|
||||
os.startfile(self.help_url)
|
||||
except WindowsError as why:
|
||||
except OSError as why:
|
||||
tkMessageBox.showerror(title='Document Start Failure',
|
||||
message=str(why), parent=self.text)
|
||||
else:
|
||||
|
@ -845,7 +845,7 @@ class EditorWindow(object):
|
|||
if sys.platform[:3] == 'win':
|
||||
try:
|
||||
os.startfile(helpfile)
|
||||
except WindowsError as why:
|
||||
except OSError as why:
|
||||
tkMessageBox.showerror(title='Document Start Failure',
|
||||
message=str(why), parent=self.text)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue