changeset: 106215:a3865d0c1844 parent: 106213:f093f88f8a5c user: Victor Stinner date: Wed Jan 18 13:49:43 2017 +0100 files: Tools/gdb/libpython.py description: Fix Python 2.6 support in python-gdb.py Issue #29259. diff -r f093f88f8a5c -r a3865d0c1844 Tools/gdb/libpython.py --- a/Tools/gdb/libpython.py Wed Jan 18 12:11:42 2017 +0000 +++ b/Tools/gdb/libpython.py Wed Jan 18 13:49:43 2017 +0100 @@ -1518,8 +1518,8 @@ 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)