From 504a4600138592c608d81ed1cda4e5bc7388cba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20K=C3=B6hler?= Date: Mon, 27 May 2024 21:21:53 +0200 Subject: [PATCH] Updated qstring.py to Python3 --- qstring.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qstring.py b/qstring.py index 1882bec..3d73a9f 100644 --- a/qstring.py +++ b/qstring.py @@ -1,3 +1,5 @@ +#! /usr/bin/env python3 + import lldb def utf16string_summary(value, *rest): @@ -16,7 +18,7 @@ def utf16string_summary(value, *rest): return '"%s"' % (bytes.decode('utf-16').encode('utf-8')) def __lldb_init_module(debugger, *rest): - print "registering QString" + print("registering QString") summary = lldb.SBTypeSummary.CreateWithFunctionName("qstring.utf16string_summary") summary.SetOptions(lldb.eTypeOptionHideChildren) debugger.GetDefaultCategory().AddTypeSummary( lldb.SBTypeNameSpecifier("QString", False), summary )