summaryrefslogtreecommitdiffstats
path: root/lldb/examples/scripting/tree_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/examples/scripting/tree_utils.py')
-rwxr-xr-xlldb/examples/scripting/tree_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/examples/scripting/tree_utils.py b/lldb/examples/scripting/tree_utils.py
index f5f251e0560..e99f7c63bed 100755
--- a/lldb/examples/scripting/tree_utils.py
+++ b/lldb/examples/scripting/tree_utils.py
@@ -18,6 +18,8 @@ for more information about dictionary.c go to
http://lldb.llvm.org/scripting.html
"""
+from __future__ import print_function
+
def DFS(root, word, cur_path):
"""
@@ -110,7 +112,7 @@ def print_tree(root):
int(root.GetChildAtIndex(1).GetValue(), 16) != 0):
print_tree(root.GetChildAtIndex(1))
- print root.GetChildAtIndex(0).GetSummary()
+ print(root.GetChildAtIndex(0).GetSummary())
if (root.GetChildAtIndex(2).GetValue() is not None) and (
int(root.GetChildAtIndex(2).GetValue(), 16) != 0):
OpenPOWER on IntegriCloud