From db03055b92bc34c4f48b576bf692d43e6c6683f4 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 17 Feb 2020 00:04:55 +0100 Subject: [PATCH 1/2] bpo-39649: Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry Appears to be obsolete since 75bb54c3d8. --- Lib/bdb.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Lib/bdb.py b/Lib/bdb.py index 7b19ba3690362d2..b18a0612d8c789b 100644 --- a/Lib/bdb.py +++ b/Lib/bdb.py @@ -548,14 +548,7 @@ def format_stack_entry(self, frame_lineno, lprefix=': '): s += frame.f_code.co_name else: s += "" - 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 += '->' From 361228cdbdbc5a31918c9277bb71948936296b19 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 23 Feb 2020 21:27:45 -0500 Subject: [PATCH 2/2] blurb --- .../NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst 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 000000000000000..5a88f79f05f0e40 --- /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.