fix #4150: pdb's up command didn't work for generators in post-mortem

This commit is contained in:
Benjamin Peterson 2008-10-22 21:16:34 +00:00
parent cd29e9d9e1
commit c18574c98e
3 changed files with 7 additions and 6 deletions

View file

@ -320,6 +320,8 @@ class Bdb:
while t is not None:
stack.append((t.tb_frame, t.tb_lineno))
t = t.tb_next
if f is None:
i = max(0, len(stack) - 1)
return stack, i
#