summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-02-24 03:33:07 (GMT)
committerGitHub <noreply@github.com>2020-02-24 03:33:07 (GMT)
commitc97fc564a6c76ba5287f1b16bc841a1765820b0c (patch)
tree0c5eaaab01b84102256df0a09328ae42ac25e799 /Lib/bdb.py
parent973348427e3e987f42ea8a871e18c8d17b5abf52 (diff)
downloadcpython-c97fc564a6c76ba5287f1b16bc841a1765820b0c.zip
cpython-c97fc564a6c76ba5287f1b16bc841a1765820b0c.tar.gz
cpython-c97fc564a6c76ba5287f1b16bc841a1765820b0c.tar.bz2
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> (cherry picked from commit 4015d1cda3cdba869103779eb6ff32ad798ff885) Co-authored-by: Daniel Hahler <git@thequod.de>
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 50d9eec..18491da 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -548,14 +548,7 @@ class Bdb:
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 += '->'