From ae83416100674f381b868c2c8bf2ac600613565d Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Tue, 25 Sep 2018 19:04:35 -0400 Subject: api: remove some lingering xrange uses in python bindings --- python/downloadprovider.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/downloadprovider.py') diff --git a/python/downloadprovider.py b/python/downloadprovider.py index 1c94aef3..eb9735f3 100644 --- a/python/downloadprovider.py +++ b/python/downloadprovider.py @@ -35,6 +35,7 @@ from binaryninja import log # 2-3 compatibility from binaryninja import pyNativeStr +from binaryninja import range class DownloadInstance(object): @@ -85,7 +86,7 @@ class _DownloadProviderMetaclass(type): count = ctypes.c_ulonglong() types = core.BNGetDownloadProviderList(count) result = [] - for i in xrange(0, count.value): + for i in range(0, count.value): result.append(DownloadProvider(types[i])) core.BNFreeDownloadProviderList(types) return result @@ -95,7 +96,7 @@ class _DownloadProviderMetaclass(type): count = ctypes.c_ulonglong() types = core.BNGetDownloadProviderList(count) try: - for i in xrange(0, count.value): + for i in range(0, count.value): yield DownloadProvider(types[i]) finally: core.BNFreeDownloadProviderList(types) -- cgit v1.3.1