summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/command_source')
-rw-r--r--lldb/test/functionalities/command_source/TestCommandSource.py2
-rw-r--r--lldb/test/functionalities/command_source/my.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/lldb/test/functionalities/command_source/TestCommandSource.py b/lldb/test/functionalities/command_source/TestCommandSource.py
index 22f8ff74798..31862ac9bf5 100644
--- a/lldb/test/functionalities/command_source/TestCommandSource.py
+++ b/lldb/test/functionalities/command_source/TestCommandSource.py
@@ -4,6 +4,8 @@ Test that lldb command "command source" works correctly.
See also http://llvm.org/viewvc/llvm-project?view=rev&revision=109673.
"""
+from __future__ import print_function
+
import lldb_shared
import os, sys
diff --git a/lldb/test/functionalities/command_source/my.py b/lldb/test/functionalities/command_source/my.py
index 86ce5026163..cb2fd012e4b 100644
--- a/lldb/test/functionalities/command_source/my.py
+++ b/lldb/test/functionalities/command_source/my.py
@@ -1,4 +1,6 @@
+from __future__ import print_function
+
def date():
import datetime
today = datetime.date.today()
- print today
+ print(today)
OpenPOWER on IntegriCloud