From 40d2f8d62e5474d984fb41e0229763ab93213fdb Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 15 Apr 2015 11:54:33 -0400 Subject: Some Python 3 fixes Some missing parentheses and one itertools.imap (Py2) vs map (Py3) issue. gdb/ChangeLog: * python/lib/gdb/command/unwinders.py: Add parentheses. gdb/testsuite/ChangeLog: * gdb.python/py-framefilter.py (ErrorFilter.filter): Use map function if itertools.imap is not present. * gdb.python/py-objfile.exp: Add parentheses. * gdb.python/py-type.exp: Same. * gdb.python/py-unwind-maint.py: Same. --- gdb/python/lib/gdb/command/unwinders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python') diff --git a/gdb/python/lib/gdb/command/unwinders.py b/gdb/python/lib/gdb/command/unwinders.py index 8530b35..1a5aed9 100644 --- a/gdb/python/lib/gdb/command/unwinders.py +++ b/gdb/python/lib/gdb/command/unwinders.py @@ -83,7 +83,7 @@ class InfoUnwinder(gdb.Command): """ if not unwinders: return - print title + print(title) for unwinder in unwinders: if name_re.match(unwinder.name): print(" %s%s" % (unwinder.name, -- cgit v1.1