llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: David Spickett (DavidSpickett) <details> <summary>Changes</summary> Our minimum Python is 3.8. --- Full diff: https://github.com/llvm/llvm-project/pull/215265.diff 1 Files Affected: - (modified) lldb/examples/python/crashlog.py (+1-8) ``````````diff 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( `````````` </details> https://github.com/llvm/llvm-project/pull/215265 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
