summaryrefslogtreecommitdiffstats
path: root/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.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/utils/vim-lldb/python-vim-lldb/lldb_controller.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/utils/vim-lldb/python-vim-lldb/lldb_controller.py')
-rw-r--r--lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py b/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
index b36769f5a57..0e59cc5f4b7 100644
--- a/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
+++ b/lldb/utils/vim-lldb/python-vim-lldb/lldb_controller.py
@@ -3,6 +3,8 @@
# This file defines the layer that talks to lldb
#
+from __future__ import print_function
+
import os
import re
import sys
@@ -164,7 +166,7 @@ class LLDBController(object):
self.ui.activate()
self.pid = self.process.GetProcessID()
- print "Attached to %s (pid=%d)" % (process_name, self.pid)
+ print("Attached to %s (pid=%d)" % (process_name, self.pid))
def doDetach(self):
if self.process is not None and self.process.IsValid():
@@ -196,7 +198,7 @@ class LLDBController(object):
self.process.GetBroadcaster().AddListener(
self.processListener, lldb.SBProcess.eBroadcastBitStateChanged)
- print "Launched %s %s (pid=%d)" % (exe, args, self.pid)
+ print("Launched %s %s (pid=%d)" % (exe, args, self.pid))
if not stop_at_entry:
self.doContinue()
@@ -323,7 +325,7 @@ class LLDBController(object):
if success:
self.ui.update(self.target, "", self, goto_file)
if len(output) > 0 and print_on_success:
- print output
+ print(output)
else:
sys.stderr.write(output)
OpenPOWER on IntegriCloud