Author: David Spickett
Date: 2026-08-10T15:53:43+01:00
New Revision: 11799583db91db32cbf845686643b336bc955a78

URL: 
https://github.com/llvm/llvm-project/commit/11799583db91db32cbf845686643b336bc955a78
DIFF: 
https://github.com/llvm/llvm-project/commit/11799583db91db32cbf845686643b336bc955a78.diff

LOG: [lldb] Remove Python 2 code in crashlog.py (#215265)

Our minimum Python is 3.8.

Added: 
    

Modified: 
    lldb/examples/python/crashlog.py

Removed: 
    


################################################################################
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

Reply via email to