summaryrefslogtreecommitdiffstats
path: root/lldb/examples/customization/import-python
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/customization/import-python
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/customization/import-python')
-rw-r--r--lldb/examples/customization/import-python/importcmd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/customization/import-python/importcmd.py b/lldb/examples/customization/import-python/importcmd.py
index 1d47ad2132f..cf7ac979966 100644
--- a/lldb/examples/customization/import-python/importcmd.py
+++ b/lldb/examples/customization/import-python/importcmd.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import sys
import os
import lldb
@@ -23,7 +24,7 @@ def do_import(debugger, modname):
def pyimport_cmd(debugger, args, result, dict):
"""Import a Python module given its full path"""
- print 'WARNING: obsolete feature - use native command "command script import"'
+ print('WARNING: obsolete feature - use native command "command script import"')
if args == "":
return "no module path given"
if not (os.sep in args):
OpenPOWER on IntegriCloud