diff options
| author | Ryan Snyder <ryan@vector35.com> | 2018-03-20 09:53:59 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-03-23 17:10:07 -0400 |
| commit | cacaec3766abddd15233aa1be7df2efc804fe996 (patch) | |
| tree | 2fba0c2a192ba8211fa40c48f95e2ba1c113ecee /python/platform.py | |
| parent | 19b66619718e8b114db2fefc498018af44010ac6 (diff) | |
Cache all created CoreArchitecture objects
Diffstat (limited to 'python/platform.py')
| -rw-r--r-- | python/platform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/platform.py b/python/platform.py index 09670bac..a79e3b9a 100644 --- a/python/platform.py +++ b/python/platform.py @@ -105,7 +105,7 @@ class Platform(object): else: self.handle = handle self.__dict__["name"] = core.BNGetPlatformName(self.handle) - self.arch = architecture.CoreArchitecture(core.BNGetPlatformArchitecture(self.handle)) + self.arch = architecture.CoreArchitecture._from_cache(core.BNGetPlatformArchitecture(self.handle)) def __del__(self): core.BNFreePlatform(self.handle) |
