summaryrefslogtreecommitdiff
path: root/python/examples/triage
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2021-09-08 10:20:40 -0400
committerJordan Wiens <jordan@psifertex.com>2021-09-08 10:20:40 -0400
commit9915daf150bd53af6e9cff57951c75cf500b7ea5 (patch)
tree984cfcd31f89ea33ec6ce063f7cd8da2f3b88f08 /python/examples/triage
parent254dfb1f6a6b450e86bfbd6600196e19b797c81d (diff)
update triage plugin to work with 3.0 api refactor
Diffstat (limited to 'python/examples/triage')
-rw-r--r--python/examples/triage/byte.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/examples/triage/byte.py b/python/examples/triage/byte.py
index 73d909d2..0cc00485 100644
--- a/python/examples/triage/byte.py
+++ b/python/examples/triage/byte.py
@@ -7,7 +7,10 @@ from PySide6.QtCore import Qt, QTimer, QRect
import binaryninjaui
from binaryninjaui import View, ViewType, RenderContext, UIContext, UIAction
from binaryninja.enums import LinearDisassemblyLineType, ThemeColor
-from binaryninja.binaryview import AddressRange
+try:
+ from binaryninja.binaryview import AddressRange
+except:
+ from binaryninja.function import AddressRange
class ByteViewLine(object):