summaryrefslogtreecommitdiff
path: root/python/downloadprovider.py
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2018-09-25 19:04:35 -0400
committerRyan Snyder <ryan@vector35.com>2018-09-25 19:11:00 -0400
commitae83416100674f381b868c2c8bf2ac600613565d (patch)
tree3548b0611a31656c56128e3dc6151ed5c9d9230a /python/downloadprovider.py
parentd8a12bb8e267812474dfe4b304d33551eabdf32f (diff)
api: remove some lingering xrange uses in python bindings
Diffstat (limited to 'python/downloadprovider.py')
-rw-r--r--python/downloadprovider.py5
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)