diff options
author | Serge Guelton <sguelton@redhat.com> | 2019-03-21 18:27:40 +0000 |
---|---|---|
committer | Serge Guelton <sguelton@redhat.com> | 2019-03-21 18:27:40 +0000 |
commit | 525cd59f5a12254e80d5f20bf2d9713728a114d4 (patch) | |
tree | bb174d21b449a016712aa1867fdbdff781b34b15 /lldb/examples/python/sources.py | |
parent | 05ea3a6be3ba172e8824a8fb66b799b3cc2c72f3 (diff) | |
download | bcm5719-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/python/sources.py')
-rw-r--r-- | lldb/examples/python/sources.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/examples/python/sources.py b/lldb/examples/python/sources.py index b912f43f72c..9684f7f6e78 100644 --- a/lldb/examples/python/sources.py +++ b/lldb/examples/python/sources.py @@ -1,4 +1,5 @@ #!/usr/bin/python +from __future__ import print_function import lldb import shlex @@ -6,10 +7,10 @@ import shlex def dump_module_sources(module, result): if module: - print >> result, "Module: %s" % (module.file) + print("Module: %s" % (module.file), file=result) for compile_unit in module.compile_units: if compile_unit.file: - print >> result, " %s" % (compile_unit.file) + print(" %s" % (compile_unit.file), file=result) def info_sources(debugger, command, result, dict): @@ -28,4 +29,4 @@ def __lldb_init_module(debugger, dict): # Add any commands contained in this module to LLDB debugger.HandleCommand( 'command script add -f sources.info_sources info_sources') - print 'The "info_sources" command has been installed, type "help info_sources" or "info_sources --help" for detailed help.' + print('The "info_sources" command has been installed, type "help info_sources" or "info_sources --help" for detailed help.') |