summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJosh F <josh@vector35.com>2021-10-21 18:19:32 -0400
committerJosh F <josh@vector35.com>2021-10-21 18:19:32 -0400
commit5bb20da936a412f69c9e32ebed5c7ad9f7e4abaa (patch)
tree59d08701a55adfda6827b4c008699cb27c844156 /python
parente35e6ceda9cd88ae892c47c81da2761c9388870a (diff)
Fix version_switcher.py
Diffstat (limited to 'python')
-rw-r--r--python/examples/version_switcher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/version_switcher.py b/python/examples/version_switcher.py
index 8156092d..f5cc7be0 100644
--- a/python/examples/version_switcher.py
+++ b/python/examples/version_switcher.py
@@ -26,7 +26,7 @@ from binaryninja import core_version
import datetime
from six.moves import input
-chandefault = UpdateChannel.list[0].name
+chandefault = list(UpdateChannel)[0].name
channel = None
versions = []
@@ -93,7 +93,7 @@ def list_channels():
done = False
print("\tSelect channel:\n")
while not done:
- channel_list = UpdateChannel.list
+ channel_list = list(UpdateChannel)
for index, item in enumerate(channel_list):
print("\t%d)\t%s" % (index + 1, item.name))
print("\t%d)\t%s" % (len(channel_list) + 1, "Main Menu"))