]> granicus.if.org Git - python/commitdiff
Fix Python 2.6 support in python-gdb.py
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Jan 2017 12:49:43 +0000 (13:49 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Jan 2017 12:49:43 +0000 (13:49 +0100)
Issue #29259.

Tools/gdb/libpython.py

index 88fb0aa7b00596b1125528bd2d4d35ce42b31c97..5c59b99942195e726c6e04d4652edc9d97938cab 100755 (executable)
@@ -1518,8 +1518,8 @@ class Frame(object):
             except RuntimeError:
                 return 'PyCFunction invocation (unable to read "func")'
 
-        elif caller in {'_PyCFunction_FastCallDict',
-                        '_PyCFunction_FastCallKeywords'}:
+        elif caller in ('_PyCFunction_FastCallDict',
+                        '_PyCFunction_FastCallKeywords'):
             try:
                 func = older._gdbframe.read_var('func_obj')
                 return str(func)