diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2017-04-25 17:51:46 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2017-04-25 17:51:46 -0400 |
| commit | 83011a9ed7aee1dd64692aef874350ce0db289b0 (patch) | |
| tree | c2962f798770372bdef97b0bc468195c340bd1a3 /python | |
| parent | ae147a96b2c0b9540113a2a1598c8f6c720534fb (diff) | |
function.platform now correctly returns the functions platform
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/function.py b/python/function.py index 0ee55f32..d54cf25a 100644 --- a/python/function.py +++ b/python/function.py @@ -28,6 +28,7 @@ from enums import (FunctionGraphType, BranchType, SymbolType, InstructionTextTok HighlightStandardColor, HighlightColorStyle, RegisterValueType, ImplicitRegisterExtend, DisassemblyOption, IntegerDisplayType, InstructionTextTokenContext, VariableSourceType) import architecture +import platform import highlight import associateddatastore import types @@ -293,10 +294,10 @@ class Function(object): @property def platform(self): """Function platform (read-only)""" - platform = core.BNGetFunctionPlatform(self.handle) - if platform is None: + plat = core.BNGetFunctionPlatform(self.handle) + if plat is None: return None - return platform.Platform(None, handle = platform) + return platform.Platform(None, handle = plat) @property def start(self): |
