diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-01-20 18:57:05 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-01-20 18:57:05 -0500 |
| commit | 4d24afdc1ccf5690b9f0338b0d9687b88ed9801d (patch) | |
| tree | 1924785262ce4b1bda4b868dfa4873af2bb113da /python | |
| parent | 048d2212945f43eb88889feaffdcce75633d94ec (diff) | |
Don't use xrange for relocation APIs
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 09c71b82..2386ff47 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -524,7 +524,7 @@ class Segment(object): count = ctypes.c_ulonglong() ranges = core.BNSegmentGetRelocationRanges(self.handle, count) result = [] - for i in xrange(0, count.value): + for i in range(0, count.value): result.append((ranges[i].start, ranges[i].end)) core.BNFreeRelocationRanges(ranges, count) return result @@ -535,7 +535,7 @@ class Segment(object): count = ctypes.c_ulonglong() ranges = core.BNSegmentGetRelocationRangesAtAddress(self.handle, addr, count) result = [] - for i in xrange(0, count.value): + for i in range(0, count.value): result.append((ranges[i].start, ranges[i].end)) core.BNFreeRelocationRanges(ranges, count) return result @@ -1249,7 +1249,7 @@ class BinaryView(object): count = ctypes.c_ulonglong() ranges = core.BNGetRelocationRanges(self.handle, count) result = [] - for i in xrange(0, count.value): + for i in range(0, count.value): result.append((ranges[i].start, ranges[i].end)) core.BNFreeRelocationRanges(ranges, count) return result @@ -1260,7 +1260,7 @@ class BinaryView(object): count = ctypes.c_ulonglong() ranges = core.BNGetRelocationRangesAtAddress(self.handle, addr, count) result = [] - for i in xrange(0, count.value): + for i in range(0, count.value): result.append((ranges[i].start, ranges[i].end)) core.BNFreeRelocationRanges(ranges, count) return result |
