forked from qt-creator/qt-creator
Debugger: Use Python 3 prints also in pure LLDB bridge code
Task-number: QTCREATORBUG-22955 Change-Id: I762acd289c50fe5817b3e6e915f35c2388c74d44 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1909,7 +1909,7 @@ class LogMixin:
|
||||
localz = frame.f_locals
|
||||
instance = str(localz["self"]) + "." if 'self' in localz else ''
|
||||
message = "%s%s(%s)%s" % (instance, fn, args, message)
|
||||
print message
|
||||
print(message)
|
||||
|
||||
@staticmethod
|
||||
def log_fn(arg_str = ''):
|
||||
@@ -1944,7 +1944,7 @@ class SummaryDumper(Dumper, LogMixin):
|
||||
|
||||
@staticmethod
|
||||
def warn(message):
|
||||
print "Qt summary warning: %s" % message
|
||||
print("Qt summary warning: %s" % message)
|
||||
|
||||
@staticmethod
|
||||
def showException(message, exType, exValue, exTraceback):
|
||||
@@ -1978,9 +1978,9 @@ class SummaryDumper(Dumper, LogMixin):
|
||||
try:
|
||||
from pygdbmi import gdbmiparser
|
||||
except ImportError:
|
||||
print "Qt summary provider requires the pygdbmi module, " \
|
||||
"please install using 'sudo /usr/bin/easy_install pygdbmi', " \
|
||||
"and then restart Xcode."
|
||||
print("Qt summary provider requires the pygdbmi module, "
|
||||
"please install using 'sudo /usr/bin/easy_install pygdbmi', "
|
||||
"and then restart Xcode.")
|
||||
lldb.debugger.HandleCommand('type category delete Qt')
|
||||
return None
|
||||
|
||||
|
Reference in New Issue
Block a user