Skip to content

Commit

Permalink
Fix Python 2.6 support in python-gdb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jan 18, 2017
1 parent 9722d7f commit 7612f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/gdb/libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,8 +1518,8 @@ def is_other_python_frame(self):
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)
Expand Down

0 comments on commit 7612f1e

Please sign in to comment.