[Python-checkins] bpo-39649: Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry (GH-18531)
Miss Islington (bot)
webhook-mailer at python.org
Sun Feb 23 22:32:55 EST 2020
https://github.com/python/cpython/commit/097612a3f711f5a6a3aec207cad78a35eb3a756d
commit: 097612a3f711f5a6a3aec207cad78a35eb3a756d
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-02-23T19:32:50-08:00
summary:
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 at udel.edu>
(cherry picked from commit 4015d1cda3cdba869103779eb6ff32ad798ff885)
Co-authored-by: Daniel Hahler <git at thequod.de>
files:
A Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst
M Lib/bdb.py
diff --git a/Lib/bdb.py b/Lib/bdb.py
index caf207733b73e..fcdc5731f8787 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -546,14 +546,7 @@ def format_stack_entry(self, frame_lineno, lprefix=': '):
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 0000000000000..5a88f79f05f0e
--- /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.
More information about the Python-checkins
mailing list