summaryrefslogtreecommitdiffstats
path: root/Tools/gdb
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-18 12:49:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-18 12:49:43 (GMT)
commit7612f1e36a90029a5abf14b9063dbb800340eff7 (patch)
tree22a45702b056efb64f979ed797e4a4d61e150af7 /Tools/gdb
parent9722d7f142e3ad21ccb7764a816bb8202ab7addc (diff)
downloadcpython-7612f1e36a90029a5abf14b9063dbb800340eff7.zip
cpython-7612f1e36a90029a5abf14b9063dbb800340eff7.tar.gz
cpython-7612f1e36a90029a5abf14b9063dbb800340eff7.tar.bz2
Fix Python 2.6 support in python-gdb.py
Issue #29259.
Diffstat (limited to 'Tools/gdb')
-rwxr-xr-xTools/gdb/libpython.py4
1 files 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)