summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/bdb.py9
-rw-r--r--Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst1
2 files changed, 2 insertions, 8 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 7b19ba3690..b18a0612d8 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 += '->'
diff --git a/Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst b/Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst
new file mode 100644
index 0000000000..5a88f79f05
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst
@@ -0,0 +1 @@
+Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry.