summaryrefslogtreecommitdiffstats
path: root/lldb/examples/scripting/tree_utils.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@redhat.com>2019-03-21 18:27:40 +0000
committerSerge Guelton <sguelton@redhat.com>2019-03-21 18:27:40 +0000
commit525cd59f5a12254e80d5f20bf2d9713728a114d4 (patch)
treebb174d21b449a016712aa1867fdbdff781b34b15 /lldb/examples/scripting/tree_utils.py
parent05ea3a6be3ba172e8824a8fb66b799b3cc2c72f3 (diff)
downloadbcm5719-llvm-525cd59f5a12254e80d5f20bf2d9713728a114d4.tar.gz
bcm5719-llvm-525cd59f5a12254e80d5f20bf2d9713728a114d4.zip
Python 2/3 compatibility: from __future__ import print_function
Differential Revision: https://reviews.llvm.org/D59580 llvm-svn: 356695
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