summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-04-03 16:32:37 (GMT)
committerGuido van Rossum <guido@python.org>1992-04-03 16:32:37 (GMT)
commitceb3ba2afcbd4174b55744b5ad2560e081708061 (patch)
tree4e1b0849e2f68c1ffc69430743e71e62c368962a /Lib/bdb.py
parent6886c835aa1df88441a5364e4f9f934d3da7d42c (diff)
downloadcpython-ceb3ba2afcbd4174b55744b5ad2560e081708061.zip
cpython-ceb3ba2afcbd4174b55744b5ad2560e081708061.tar.gz
cpython-ceb3ba2afcbd4174b55744b5ad2560e081708061.tar.bz2
Different syntax: cannot mix except and finally any more
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index a5b580b..15a8023 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -246,9 +246,10 @@ class Bdb: # Basic Debugger
self.reset()
sys.settrace(self.trace_dispatch)
try:
- exec(cmd + '\n', globals, locals)
- except BdbQuit:
- pass
+ try:
+ exec(cmd + '\n', globals, locals)
+ except BdbQuit:
+ pass
finally:
self.quitting = 1
sys.settrace(None)