From 4013f0cdf0cbb7e21604c15ffde9bbc4835c075e Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 16 Sep 2019 14:01:48 +0200 Subject: Debugger: Use Python 3 prints also in pure LLDB bridge code Task-number: QTCREATORBUG-22955 Change-Id: I762acd289c50fe5817b3e6e915f35c2388c74d44 Reviewed-by: Christian Stenger (cherry picked from commit 7f29fa2030d62c6110f3869332e62672759b58e2) Reviewed-by: Eike Ziller --- share/qtcreator/debugger/lldbbridge.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'share') diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py index 0150a38c8e..09bbc3a276 100644 --- a/share/qtcreator/debugger/lldbbridge.py +++ b/share/qtcreator/debugger/lldbbridge.py @@ -1916,7 +1916,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 = ''): @@ -1951,7 +1951,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): @@ -1985,9 +1985,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 -- cgit v1.2.3