summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py
index bec3c2ad..9547e34a 100644
--- a/python/function.py
+++ b/python/function.py
@@ -378,8 +378,8 @@ class Function(object):
plat = core.BNGetFunctionPlatform(self.handle)
if plat is None:
return None
- self._platform = plat
- return platform.Platform(None, handle = plat)
+ self._platform = platform.Platform(None, handle = plat)
+ return self._platform
@property
def start(self):