Changelog: bv.write and bv.insert require a bytes object in python3 Architecture.assemble outputs a bytes object in python3, a str in python2 Architecture.assemble will throw a value error if it cannot assemble the given instruction API install script should be run in the version of python you want it installed in Fundamental python changes to be aware of: Unicode-type strings are now just str, consequently anything that came out as a unicode string before (annotations) are now just str. Longs no longer exist. They're just ints.
Diffstat (limited to 'python/undoaction.py')
-rw-r--r--python/undoaction.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/python/undoaction.py b/python/undoaction.py
index 7e3c76a0..7891bf54 100644
--- a/python/undoaction.py
+++ b/python/undoaction.py
@@ -23,10 +23,8 @@ import json
import ctypes
# Binary Ninja components
-import _binaryninjacore as core
-from enums import ActionType
-import startup
-import log
+from binaryninja import _binaryninjacore as core
+from binaryninja.enums import ActionType
class UndoAction(object):
@@ -52,7 +50,7 @@ class UndoAction(object):
@classmethod
def register(cls):
- startup._init_plugins()
+ binaryninja._init_plugins()
if cls.name is None:
raise ValueError("undo action 'name' not defined")
if cls.action_type is None: