summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/completion/TestCompletion.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/completion/TestCompletion.py')
-rw-r--r--lldb/test/functionalities/completion/TestCompletion.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/test/functionalities/completion/TestCompletion.py b/lldb/test/functionalities/completion/TestCompletion.py
index f2c5302a7d4..097c9f572f7 100644
--- a/lldb/test/functionalities/completion/TestCompletion.py
+++ b/lldb/test/functionalities/completion/TestCompletion.py
@@ -2,6 +2,8 @@
Test the lldb command line completion mechanism.
"""
+from __future__ import print_function
+
import lldb_shared
import os
@@ -301,13 +303,13 @@ class CommandLineCompletionTestCase(TestBase):
with open('child_send.txt', 'r') as fs:
if self.TraceOn():
- print "\n\nContents of child_send.txt:"
- print fs.read()
+ print("\n\nContents of child_send.txt:")
+ print(fs.read())
with open('child_read.txt', 'r') as fr:
from_child = fr.read()
if self.TraceOn():
- print "\n\nContents of child_read.txt:"
- print from_child
+ print("\n\nContents of child_read.txt:")
+ print(from_child)
# The matching could be verbatim or using generic re pattern.
for p in patterns:
OpenPOWER on IntegriCloud