Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-39649: Remove obsolete check for __args__ in bdb.Bdb.format_sta…
…ck_entry

Appears to be obsolete since 75bb54c.
  • Loading branch information
blueyed committed Feb 16, 2020
commit db03055b92bc34c4f48b576bf692d43e6c6683f4
9 changes: 1 addition & 8 deletions Lib/bdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,7 @@ def format_stack_entry(self, frame_lineno, lprefix=': '):
s += frame.f_code.co_name
else:
s += "<lambda>"
if '__args__' in frame.f_locals:
args = frame.f_locals['__args__']
else:
args = None
if args:
s += reprlib.repr(args)
else:
s += '()'
s += '()'
if '__return__' in frame.f_locals:
rv = frame.f_locals['__return__']
s += '->'
Expand Down