https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/215265
Our minimum Python is 3.8. >From f79bdccc9a5a50aa4c3b9de5498a52753736a088 Mon Sep 17 00:00:00 2001 From: David Spickett <[email protected]> Date: Mon, 10 Aug 2026 12:43:14 +0000 Subject: [PATCH] [lldb] Remove Python 2 code in crashlog.py Our minimum Python is 3.8. --- lldb/examples/python/crashlog.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index a1be2edd70aa5..3b8e72c8ae1ae 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -74,13 +74,6 @@ from lldb.plugins.scripted_process import INTEL64_GPR, ARM64_GPR -def read_plist(s): - if sys.version_info.major == 3: - return plistlib.loads(s) - else: - return plistlib.readPlistFromString(s) - - class CrashLog(symbolication.Symbolicator): class Thread: """Class that represents a thread in a darwin crash log""" @@ -367,7 +360,7 @@ def locate_module_and_debug_symbols(self): s = subprocess.check_output(dsym_for_uuid_command, shell=True) if s: try: - plist_root = read_plist(s) + plist_root = plistlib.loads(s) except: with print_lock: print( _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
