diff options
| author | Camille Mougey <commial@gmail.com> | 2019-03-07 14:37:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-07 14:37:07 +0100 |
| commit | 4c2320b46250a8d6f8774e1218544b72a154cd8e (patch) | |
| tree | b67e7b072439f84109bd39dad8ed7f3f135224f8 /test/os_dep/common.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| parent | 26c1075723a02984da6d3bc7423c5c0c43082dc3 (diff) | |
| download | miasm-4c2320b46250a8d6f8774e1218544b72a154cd8e.tar.gz miasm-4c2320b46250a8d6f8774e1218544b72a154cd8e.zip | |
Merge pull request #990 from serpilliere/support_python2_python3
Support python2 python3
Diffstat (limited to 'test/os_dep/common.py')
| -rwxr-xr-x | test/os_dep/common.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/os_dep/common.py b/test/os_dep/common.py index 5d525e32..749d71a7 100755 --- a/test/os_dep/common.py +++ b/test/os_dep/common.py @@ -1,12 +1,13 @@ #! /usr/bin/env python2 #-*- coding:utf-8 -*- +from builtins import range import unittest import logging -from miasm2.analysis.machine import Machine -import miasm2.os_dep.common as commonapi -from miasm2.core.utils import pck32 -from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE +from miasm.analysis.machine import Machine +import miasm.os_dep.common as commonapi +from miasm.core.utils import pck32 +from miasm.jitter.csts import PAGE_READ, PAGE_WRITE machine = Machine("x86_32") @@ -25,7 +26,7 @@ class TestCommonAPI(unittest.TestCase): heap.alloc(jit, 60) ptr = heap.alloc(jit, 10) heap.alloc(jit, 80) - for i in xrange(10): + for i in range(10): self.assertEqual(heap.get_size(jit.vm, ptr+i), 10) if __name__ == '__main__': |