diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/IOBinding.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index e5ae505..d321d8c 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -274,7 +274,10 @@ class IOBinding: else: if self.writefile(self.filename): 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() return "break" @@ -284,7 +287,10 @@ class IOBinding: if self.writefile(filename): self.set_filename(filename) self.set_saved(1) - self.editwin.store_file_breaks() + try: + self.editwin.store_file_breaks() + except AttributeError: + pass self.text.focus_set() self.updaterecentfileslist(filename) return "break" |