diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-10-22 21:16:34 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-10-22 21:16:34 +0000 |
commit | c18574c98e51cce9b16508db7cb1ea56ea1942ab (patch) | |
tree | 2a31aa1f8576374bb814d19fcb905d2a5d8d53fb /Lib/bdb.py | |
parent | cd29e9d9e148d8553b243b33fb3cdb8b64b9e003 (diff) | |
download | cpython-git-c18574c98e51cce9b16508db7cb1ea56ea1942ab.tar.gz |
fix #4150: pdb's up command didn't work for generators in post-mortem
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r-- | Lib/bdb.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py index d74415bf14..5288cc0d77 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -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 # |