We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 958b5c2 commit e08185bCopy full SHA for e08185b
plugins/bap/utils/ida.py
@@ -1,14 +1,16 @@
1
"""Utilities that interact with IDA."""
2
import idaapi
3
import idc
4
-from idaapi import *
5
-from idc import *
6
import idautils
7
8
from ._service import Service
9
from ._comment_handler import CommentHandlers
10
from ._ctyperewriter import Rewriter
11
+try:
+ from idc import get_segm_name
12
+except ImportError:
13
+ from idaapi import get_segm_name
14
15
service = Service()
16
comment = CommentHandlers()
tests/mockidaapi.py
@@ -14,3 +14,4 @@ def get_cmt(ea, off): NotImplemented
def set_cmt(ea, off): NotImplemented
def askyn_c(dflt, title): NotImplemented
def get_input_file_path() : NotImplemented
17
+def get_segm_name(ea): NotImplemented
0 commit comments