summaryrefslogtreecommitdiff
path: root/python/examples
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/version-switcher.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/version-switcher.py b/python/examples/version-switcher.py
index 087bf7f9..6199c578 100644
--- a/python/examples/version-switcher.py
+++ b/python/examples/version-switcher.py
@@ -3,14 +3,14 @@ import sys
import binaryninja
import datetime
-chandefault="release"
-channel=0
-versions=0
+chandefault = binaryninja.UpdateChannel.list[0].name
+channel = None
+versions = []
def load_channel(newchannel):
global channel
global versions
- if (channel != 0 and newchannel == channel.name):
+ if (channel != None and newchannel == channel.name):
print "Same channel, not updating."
else:
try: