From 4152126289652104982292308858511197568097 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 31 May 2024 18:31:09 -0400 Subject: Add CorePlatform to python api for proper subclassing --- python/typeparser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/typeparser.py') diff --git a/python/typeparser.py b/python/typeparser.py index 98c83029..3e58d650 100644 --- a/python/typeparser.py +++ b/python/typeparser.py @@ -266,7 +266,7 @@ class TypeParser(metaclass=_TypeParserMetaclass): try: source_py = core.pyNativeStr(source) file_name_py = core.pyNativeStr(fileName) - platform_py = platform.Platform(handle=core.BNNewPlatformReference(platform_)) + platform_py = platform.CorePlatform._from_cache(handle=core.BNNewPlatformReference(platform_)) existing_types_py = None if existingTypes: @@ -310,7 +310,7 @@ class TypeParser(metaclass=_TypeParserMetaclass): try: source_py = core.pyNativeStr(source) file_name_py = core.pyNativeStr(fileName) - platform_py = platform.Platform(handle=core.BNNewPlatformReference(platform_)) + platform_py = platform.CorePlatform._from_cache(handle=core.BNNewPlatformReference(platform_)) existing_types_py = None if existingTypes: @@ -359,7 +359,7 @@ class TypeParser(metaclass=_TypeParserMetaclass): ) -> bool: try: source_py = core.pyNativeStr(source) - platform_py = platform.Platform(handle=core.BNNewPlatformReference(platform_)) + platform_py = platform.CorePlatform._from_cache(handle=core.BNNewPlatformReference(platform_)) existing_types_py = None if existingTypes: -- cgit v1.3.1