mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Have Bdb frame_returning in the finally clause
This commit is contained in:
parent
7f6d4e1926
commit
dc8cb3d08f
1 changed files with 5 additions and 3 deletions
|
|
@ -83,8 +83,10 @@ class Bdb:
|
|||
|
||||
def dispatch_return(self, frame, arg):
|
||||
if self.stop_here(frame) or frame == self.returnframe:
|
||||
try:
|
||||
self.frame_returning = frame
|
||||
self.user_return(frame, arg)
|
||||
finally:
|
||||
self.frame_returning = None
|
||||
if self.quitting: raise BdbQuit
|
||||
return self.trace_dispatch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue