From 7612f1e36a90029a5abf14b9063dbb800340eff7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 18 Jan 2017 13:49:43 +0100 Subject: Fix Python 2.6 support in python-gdb.py Issue #29259. --- Tools/gdb/libpython.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 88fb0aa..5c59b99 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) -- cgit v0.12