diff options
Diffstat (limited to 'python/downloadprovider.py')
| -rw-r--r-- | python/downloadprovider.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
