From: Victor Stinner Date: Wed, 18 Jan 2017 12:49:43 +0000 (+0100) Subject: Fix Python 2.6 support in python-gdb.py X-Git-Tag: v3.7.0a1~1520 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7612f1e36a90029a5abf14b9063dbb800340eff7;p=python Fix Python 2.6 support in python-gdb.py Issue #29259. --- diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 88fb0aa7b0..5c59b99942 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -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)