diff options
Diffstat (limited to 'python/examples/version-switcher.py')
| -rw-r--r-- | python/examples/version-switcher.py | 8 |
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: |
