summaryrefslogtreecommitdiff
path: root/python/undoaction.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-01-05 09:14:31 -0500
committerPeter LaFosse <peter@vector35.com>2017-01-05 09:14:31 -0500
commit4761ea9c83104b872d8d49fcde45f17d17e7872d (patch)
tree0acca0d74701a834c36f85aebd7dd9955ecbfb8f /python/undoaction.py
parent96acbed85902d8dfd43ef624afac72145ae6e577 (diff)
Modifying how enumerations are exposed and used, and a bunch of cleanup of existing plugins
Diffstat (limited to 'python/undoaction.py')
-rw-r--r--python/undoaction.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/undoaction.py b/python/undoaction.py
index 850d37fd..9f742e00 100644
--- a/python/undoaction.py
+++ b/python/undoaction.py
@@ -24,6 +24,7 @@ import ctypes
# Binary Ninja components
import _binaryninjacore as core
+from enums import ActionType
import startup
import log
@@ -40,7 +41,7 @@ class UndoAction(object):
raise TypeError("undo action type not registered")
action_type = self.__class__.action_type
if isinstance(action_type, str):
- self._cb.type = core.BNActionType[action_type]
+ self._cb.type = ActionType[action_type]
else:
self._cb.type = action_type
self._cb.context = 0