Attempting to save the shell raised an error related to saving

breakpoints, which are not implemented in the shell
This commit is contained in:
Kurt B. Kaiser 2003-03-04 04:42:04 +00:00
parent b2487335bf
commit ddeaf11d7e
1 changed files with 8 additions and 2 deletions

View File

@ -274,7 +274,10 @@ class IOBinding:
else: else:
if self.writefile(self.filename): if self.writefile(self.filename):
self.set_saved(1) self.set_saved(1)
self.editwin.store_file_breaks() try:
self.editwin.store_file_breaks()
except AttributeError: # may be a PyShell
pass
self.text.focus_set() self.text.focus_set()
return "break" return "break"
@ -284,7 +287,10 @@ class IOBinding:
if self.writefile(filename): if self.writefile(filename):
self.set_filename(filename) self.set_filename(filename)
self.set_saved(1) self.set_saved(1)
self.editwin.store_file_breaks() try:
self.editwin.store_file_breaks()
except AttributeError:
pass
self.text.focus_set() self.text.focus_set()
self.updaterecentfileslist(filename) self.updaterecentfileslist(filename)
return "break" return "break"