bpo-39649: Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry (GH-18531)
Appears to be obsolete since 75bb54c3d8
.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
aea045adb8
commit
4015d1cda3
|
@ -548,13 +548,6 @@ class Bdb:
|
||||||
s += frame.f_code.co_name
|
s += frame.f_code.co_name
|
||||||
else:
|
else:
|
||||||
s += "<lambda>"
|
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:
|
if '__return__' in frame.f_locals:
|
||||||
rv = frame.f_locals['__return__']
|
rv = frame.f_locals['__return__']
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry.
|
Loading…
Reference in New Issue