diff options
Diffstat (limited to 'lldb/test/tools/lldb-mi/lldbmi_testcase.py')
-rw-r--r-- | lldb/test/tools/lldb-mi/lldbmi_testcase.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/tools/lldb-mi/lldbmi_testcase.py b/lldb/test/tools/lldb-mi/lldbmi_testcase.py index e29864ac5df..82c49babfaa 100644 --- a/lldb/test/tools/lldb-mi/lldbmi_testcase.py +++ b/lldb/test/tools/lldb-mi/lldbmi_testcase.py @@ -2,6 +2,8 @@ Base class for lldb-mi test cases. """ +from __future__ import print_function + import lldb_shared from lldbtest import * @@ -24,9 +26,9 @@ class MiTestCaseBase(Base): def tearDown(self): if self.TraceOn(): - print "\n\nContents of %s:" % self.mylog + print("\n\nContents of %s:" % self.mylog) try: - print open(self.mylog, "r").read() + print(open(self.mylog, "r").read()) except IOError: pass Base.tearDown(self) |