]> granicus.if.org Git - python/commitdiff
Attempting to save the shell raised an error related to saving
authorKurt B. Kaiser <kbk@shore.net>
Tue, 4 Mar 2003 04:42:04 +0000 (04:42 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Tue, 4 Mar 2003 04:42:04 +0000 (04:42 +0000)
breakpoints, which are not implemented in the shell

Lib/idlelib/IOBinding.py

index e5ae5051aad0f2b24fd7fb05ecd2d5bbd678a29f..d321d8cb5ac67c7e86237a6b34fe7ef69fc8f233 100644 (file)
@@ -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"