summaryrefslogtreecommitdiff
path: root/python/examples/version-switcher.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-09-13 18:22:57 -0400
committerJordan Wiens <jordan@psifertex.com>2016-09-13 18:22:57 -0400
commitb398b6a0a8683ae844e6b61389d02317f53a252e (patch)
tree847a4df6f3021a84761c721e19a7f155d10defa8 /python/examples/version-switcher.py
parent78058d0121e7a841dcefb1983952bec413746ade (diff)
better defaults for version switcher
Diffstat (limited to 'python/examples/version-switcher.py')
-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: