diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-02-25 11:09:54 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-03-05 16:52:49 +0100 |
| commit | 02bbb30efea4980c9d133947cbbf69fb599071ad (patch) | |
| tree | 3fea6826fcc5354840a27cb1dc99ff31eef81896 /miasm2/core/asm_ast.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| download | miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip | |
Support python2/python3
Diffstat (limited to 'miasm2/core/asm_ast.py')
| -rw-r--r-- | miasm2/core/asm_ast.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/core/asm_ast.py b/miasm2/core/asm_ast.py index 3b06ce62..69ff1f9c 100644 --- a/miasm2/core/asm_ast.py +++ b/miasm2/core/asm_ast.py @@ -1,3 +1,5 @@ +from builtins import int as int_types + class AstNode(object): """ Ast node object @@ -68,7 +70,7 @@ class AstMem(AstNode): """ def __init__(self, ptr, size): assert isinstance(ptr, AstNode) - assert isinstance(size, (int, long)) + assert isinstance(size, int_types) self.ptr = ptr self.size = size |