summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2023-09-18 11:40:32 +0800
committerXusheng <xusheng@vector35.com>2023-09-18 11:40:32 +0800
commit76028d2059cba0cfb66887ac1f42ae181b61bd5c (patch)
treec4d76241156ad41f40ffa46e441cd6c4bc538daa /python
parent742ba9d2cb03517bd1f7c266fe5627ab228d067d (diff)
Fix BinaryViewType.load does not return the created binary view. Fix https://github.com/Vector35/binaryninja-api/issues/4632
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 01d44471..531da297 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -1197,7 +1197,7 @@ class BinaryViewType(metaclass=_BinaryViewTypeMetaclass):
def load(
cls, source: Union[str, bytes, bytearray, 'databuffer.DataBuffer', 'os.PathLike', 'BinaryView'], update_analysis: Optional[bool] = True,
progress_func: Optional[ProgressFuncType] = None, options: Mapping[str, Any] = {}) -> Optional['BinaryView']:
- BinaryView.load(source, update_analysis, progress_func, options)
+ return BinaryView.load(source, update_analysis, progress_func, options)
def parse(self, data: 'BinaryView') -> Optional['BinaryView']:
view = core.BNParseBinaryViewOfType(self.handle, data.handle)