aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-unwind-maint.py
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-04-15 11:54:33 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-04-15 11:54:33 -0400
commit40d2f8d62e5474d984fb41e0229763ab93213fdb (patch)
treeaf13373d34f1446b7e12d6b8fd65ae667dffc582 /gdb/testsuite/gdb.python/py-unwind-maint.py
parent6bbbba9ba5bcde0b2f4613e1bec3226cf567dcf9 (diff)
downloadgdb-40d2f8d62e5474d984fb41e0229763ab93213fdb.zip
gdb-40d2f8d62e5474d984fb41e0229763ab93213fdb.tar.gz
gdb-40d2f8d62e5474d984fb41e0229763ab93213fdb.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-unwind-maint.py')
-rw-r--r--gdb/testsuite/gdb.python/py-unwind-maint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.python/py-unwind-maint.py b/gdb/testsuite/gdb.python/py-unwind-maint.py
index f8c6277..288fe07 100644
--- a/gdb/testsuite/gdb.python/py-unwind-maint.py
+++ b/gdb/testsuite/gdb.python/py-unwind-maint.py
@@ -24,7 +24,7 @@ class TestGlobalUnwinder(Unwinder):
super(TestGlobalUnwinder, self).__init__("global_unwinder")
def __call__(self, unwinder_info):
- print "%s called" % self.name
+ print("%s called" % self.name)
return None
class TestProgspaceUnwinder(Unwinder):
@@ -32,7 +32,7 @@ class TestProgspaceUnwinder(Unwinder):
super(TestProgspaceUnwinder, self).__init__("%s_ps_unwinder" % name)
def __call__(self, unwinder_info):
- print "%s called" % self.name
+ print("%s called" % self.name)
return None
class TestObjfileUnwinder(Unwinder):
@@ -40,7 +40,7 @@ class TestObjfileUnwinder(Unwinder):
super(TestObjfileUnwinder, self).__init__("%s_obj_unwinder" % name)
def __call__(self, unwinder_info):
- print "%s called" % self.name
+ print("%s called" % self.name)
return None
@@ -56,4 +56,4 @@ if not saw_runtime_error:
gdb.unwinder.register_unwinder(None, TestGlobalUnwinder(), replace=True)
gdb.unwinder.register_unwinder(gdb.current_progspace(),
TestProgspaceUnwinder("py_unwind_maint"))
-print "Python script imported"
+print("Python script imported")