]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39649: Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry (GH...
authorDaniel Hahler <git@thequod.de>
Mon, 24 Feb 2020 03:14:53 +0000 (04:14 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2020 03:14:53 +0000 (22:14 -0500)
Appears to be obsolete since 75bb54c3d8.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/bdb.py
Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst [new file with mode: 0644]

index 7b19ba3690362d25b4de7405d2fcdd1c3e07d950..b18a0612d8c789b9b51216f3ebffe910751aadec 100644 (file)
@@ -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 (file)
index 0000000..5a88f79
--- /dev/null
@@ -0,0 +1 @@
+Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry.