From 24275b460b46b29adefcabf5e2d25203e87cd1bf Mon Sep 17 00:00:00 2001 From: jonschz Date: Thu, 30 May 2024 20:48:18 +0200 Subject: [PATCH] fix Python 3.9 issue --- tools/ghidra_scripts/lego_util/type_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ghidra_scripts/lego_util/type_importer.py b/tools/ghidra_scripts/lego_util/type_importer.py index 0c413e4a..0d3ee5df 100644 --- a/tools/ghidra_scripts/lego_util/type_importer.py +++ b/tools/ghidra_scripts/lego_util/type_importer.py @@ -153,7 +153,7 @@ def _import_union(self, type_pdb: dict[str, Any]) -> DataType: union_type = get_ghidra_type(self.api, type_pdb["name"]) assert ( union_type.getLength() == type_pdb["size"] - ), f"Wrong size of existing union type '{type_pdb['name']}': expected {type_pdb["size"]}, got {union_type.getLength()}" + ), f"Wrong size of existing union type '{type_pdb['name']}': expected {type_pdb['size']}, got {union_type.getLength()}" return union_type except TypeNotFoundInGhidraError as e: # We have so few instances, it is not worth implementing this