Skip to content

Commit 7612f1e

Browse files
committed
Fix Python 2.6 support in python-gdb.py
Issue #29259.
1 parent 9722d7f commit 7612f1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tools/gdb/libpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,8 @@ def is_other_python_frame(self):
15181518
except RuntimeError:
15191519
return 'PyCFunction invocation (unable to read "func")'
15201520

1521-
elif caller in {'_PyCFunction_FastCallDict',
1522-
'_PyCFunction_FastCallKeywords'}:
1521+
elif caller in ('_PyCFunction_FastCallDict',
1522+
'_PyCFunction_FastCallKeywords'):
15231523
try:
15241524
func = older._gdbframe.read_var('func_obj')
15251525
return str(func)

0 commit comments

Comments
 (0)