Skip to content

Commit 097612a

Browse files
bpo-39649: Remove obsolete check for __args__ in bdb.Bdb.format_stack_entry (GH-18531)
Appears to be obsolete since 75bb54c. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 4015d1c) Co-authored-by: Daniel Hahler <[email protected]>
1 parent d57f999 commit 097612a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Lib/bdb.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,7 @@ def format_stack_entry(self, frame_lineno, lprefix=': '):
546546
s += frame.f_code.co_name
547547
else:
548548
s += "<lambda>"
549-
if '__args__' in frame.f_locals:
550-
args = frame.f_locals['__args__']
551-
else:
552-
args = None
553-
if args:
554-
s += reprlib.repr(args)
555-
else:
556-
s += '()'
549+
s += '()'
557550
if '__return__' in frame.f_locals:
558551
rv = frame.f_locals['__return__']
559552
s += '->'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry.

0 commit comments

Comments
 (0)