From 04bc6f11ae0289aae57d63d4cd32f4ef305d1a7a Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 29 Jun 2023 20:49:26 -0400 Subject: Move binary view loading in to the core; deprecate open_view in favor of load; update examples --- python/examples/print_syscalls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/examples/print_syscalls.py') diff --git a/python/examples/print_syscalls.py b/python/examples/print_syscalls.py index a16cd8f9..7f10fdd0 100644 --- a/python/examples/print_syscalls.py +++ b/python/examples/print_syscalls.py @@ -25,13 +25,13 @@ import sys from itertools import chain -from binaryninja.binaryview import BinaryViewType +from binaryninja import load from binaryninja.enums import LowLevelILOperation def print_syscalls(fileName): """ Print Syscall numbers for a provided file """ - bv = BinaryViewType.get_view_of_file(fileName) + bv = load(fileName) calling_convention = bv.platform.system_call_convention if calling_convention is None: print('Error: No syscall convention available for {:s}'.format(bv.platform)) -- cgit v1.3.1