about summary refs log tree commit diff stats
path: root/miasm/core/locationdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm/core/locationdb.py')
-rw-r--r--miasm/core/locationdb.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/miasm/core/locationdb.py b/miasm/core/locationdb.py
index dd336752..f950b48f 100644
--- a/miasm/core/locationdb.py
+++ b/miasm/core/locationdb.py
@@ -6,11 +6,6 @@ from future.utils import viewitems, viewvalues
 
 from miasm.core.utils import printable, force_bytes
 from miasm.expression.expression import LocKey, ExprLoc
-from miasm.expression.modint import moduint, modint
-
-
-def is_int(a):
-    return isinstance(a, (int_types, moduint, modint))
 
 
 class LocationDB(object):
@@ -246,7 +241,7 @@ class LocationDB(object):
 
         name = force_bytes(name)
         # Deprecation handling
-        if is_int(name):
+        if isinstance(name, int_types):
             assert offset is None or offset == name
             warnings.warn("Deprecated API: use 'add_location(offset=)' instead."
                           " An additional 'name=' can be provided to also "