summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-03-04 04:42:04 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-03-04 04:42:04 (GMT)
commitddeaf11d7e777d0bd0bc3e60242d1dac9d881f18 (patch)
tree79d0d57ec8a0b23c1d16daac3d1bd5a3ae368baa /Lib
parentb2487335bf8c9258d347d96cf615d964d57f5658 (diff)
downloadcpython-ddeaf11d7e777d0bd0bc3e60242d1dac9d881f18.zip
cpython-ddeaf11d7e777d0bd0bc3e60242d1dac9d881f18.tar.gz
cpython-ddeaf11d7e777d0bd0bc3e60242d1dac9d881f18.tar.bz2
Attempting to save the shell raised an error related to saving
breakpoints, which are not implemented in the shell
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/IOBinding.py10
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"