summaryrefslogtreecommitdiff
path: root/python/examples/instruction_iterator.py
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-06-29 20:49:26 -0400
committerKyleMiles <krm504@nyu.edu>2023-07-10 12:58:24 -0400
commit04bc6f11ae0289aae57d63d4cd32f4ef305d1a7a (patch)
tree46f06280b13fb80f2aebf0eea9b52f884e698d0c /python/examples/instruction_iterator.py
parent7598688466960427890036590239565364310171 (diff)
Move binary view loading in to the core; deprecate open_view in favor of load; update examples
Diffstat (limited to 'python/examples/instruction_iterator.py')
-rw-r--r--python/examples/instruction_iterator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/instruction_iterator.py b/python/examples/instruction_iterator.py
index 741f03c4..62329f02 100644
--- a/python/examples/instruction_iterator.py
+++ b/python/examples/instruction_iterator.py
@@ -21,7 +21,7 @@
import sys
from binaryninja.log import log_info, log_to_stdout
-from binaryninja import open_view, BinaryView
+from binaryninja import load, BinaryView
from binaryninja import PluginCommand, LogLevel
@@ -53,7 +53,7 @@ if __name__ == "__main__":
if len(sys.argv) > 1:
target = sys.argv[1]
log_to_stdout(LogLevel.WarningLog)
- with open_view(target) as bv:
+ with load(target) as bv:
log_to_stdout(LogLevel.InfoLog)
iterate(bv)
else: