From 16d8c5e55f9e16ab712b886c9053a35115de5199 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Mon, 24 Dec 2018 21:21:10 +0700 Subject: [PATCH] LLDB bindings: make compatible with Python 2.7.x and 3.x Issue #KT-28926:fixed --- llvmDebugInfoC/src/scripts/konan_lldb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvmDebugInfoC/src/scripts/konan_lldb.py b/llvmDebugInfoC/src/scripts/konan_lldb.py index daeaa059139..8de258b6206 100644 --- a/llvmDebugInfoC/src/scripts/konan_lldb.py +++ b/llvmDebugInfoC/src/scripts/konan_lldb.py @@ -155,7 +155,7 @@ class KonanHelperProvider(lldb.SBSyntheticValueProvider): def _deref_or_obj_summary(self, index): value = self._values[index] if not value: - print "_deref_or_obj_summary: value none, index:{}, type:{}".format(index, self._children_types[index]) + print("_deref_or_obj_summary: value none, index:{}, type:{}".format(index, self._children_types[index])) return None if check_type_info(value): return kotlin_object_type_summary(value, None) @@ -276,7 +276,7 @@ class KonanProxyTypeProvider: def print_this_command(debugger, command, result, internal_dict): pthis = lldb.frame.FindVariable('') - print pthis + print(pthis) def __lldb_init_module(debugger, _): __FACTORY['object'] = lambda x: KonanObjectSyntheticProvider(x)