Commit 077dde3e authored by Guido van Rossum's avatar Guido van Rossum

Different syntax: cannot mix except and finally any more

parent 3a39d10a
...@@ -246,9 +246,10 @@ class Bdb: # Basic Debugger ...@@ -246,9 +246,10 @@ class Bdb: # Basic Debugger
self.reset() self.reset()
sys.settrace(self.trace_dispatch) sys.settrace(self.trace_dispatch)
try: try:
exec(cmd + '\n', globals, locals) try:
except BdbQuit: exec(cmd + '\n', globals, locals)
pass except BdbQuit:
pass
finally: finally:
self.quitting = 1 self.quitting = 1
sys.settrace(None) sys.settrace(None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment