diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-05-31 18:31:09 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2024-06-04 00:29:49 -0400 |
| commit | 4152126289652104982292308858511197568097 (patch) | |
| tree | 1f1def136b994e7746b6fe650963d151da209cf8 /python/typeparser.py | |
| parent | 6520026964065327558472841838510176646568 (diff) | |
Add CorePlatform to python api for proper subclassing
Diffstat (limited to 'python/typeparser.py')
| -rw-r--r-- | python/typeparser.py | 6 |
1 files changed, 3 insertions, 3 deletions
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: |
