From b398b6a0a8683ae844e6b61389d02317f53a252e Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 13 Sep 2016 18:22:57 -0400 Subject: better defaults for version switcher --- python/examples/version-switcher.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python') 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: -- cgit v1.3.1