]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39649: Remove obsolete check for `__args__` in bdb.Bdb.format_stack_entry (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Feb 2020 03:32:50 +0000 (19:32 -0800)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2020 03:32:50 +0000 (19:32 -0800)
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>
Lib/bdb.py
Misc/NEWS.d/next/Library/2020-02-23-21-27-10.bpo-39649.qiubSp.rst [new file with mode: 0644]

index caf207733b73e13802e054251e7dd0935ce829bd..fcdc5731f878717f6119f476fe92150774c3ae29 100644 (file)
@@ -546,14 +546,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.