Skip to content

Commit c97fc56

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 9733484 commit c97fc56

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
@@ -548,14 +548,7 @@ def format_stack_entry(self, frame_lineno, lprefix=': '):
548548
s += frame.f_code.co_name
549549
else:
550550
s += "<lambda>"
551-
if '__args__' in frame.f_locals:
552-
args = frame.f_locals['__args__']
553-
else:
554-
args = None
555-
if args:
556-
s += reprlib.repr(args)
557-
else:
558-
s += '()'
551+
s += '()'
559552
if '__return__' in frame.f_locals:
560553
rv = frame.f_locals['__return__']
561554
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)