diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2021-09-08 10:20:40 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2021-09-08 10:20:40 -0400 |
| commit | 9915daf150bd53af6e9cff57951c75cf500b7ea5 (patch) | |
| tree | 984cfcd31f89ea33ec6ce063f7cd8da2f3b88f08 /python/examples/triage | |
| parent | 254dfb1f6a6b450e86bfbd6600196e19b797c81d (diff) | |
update triage plugin to work with 3.0 api refactor
Diffstat (limited to 'python/examples/triage')
| -rw-r--r-- | python/examples/triage/byte.py | 5 |
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): |
