summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-11-26 15:36:32 -0500
committerRusty Wagner <rusty@vector35.com>2018-11-26 15:36:32 -0500
commitec34be5b202513aa9c4416404c384e2917ceecfc (patch)
treebe84ed506fe6de432903cf9c6305044918f316fb /python
parentf14d11f628dd0c4838d17d01dd21f5971a399f2c (diff)
Fix version switcher on Python 3
Diffstat (limited to 'python')
-rw-r--r--python/examples/version_switcher.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/examples/version_switcher.py b/python/examples/version_switcher.py
index c990a6c0..cf99df5b 100644
--- a/python/examples/version_switcher.py
+++ b/python/examples/version_switcher.py
@@ -24,6 +24,7 @@ import sys
from binaryninja.update import UpdateChannel, are_auto_updates_enabled, set_auto_updates_enabled, is_update_installation_pending, install_pending_update
from binaryninja import core_version
import datetime
+from six.moves import input
chandefault = UpdateChannel.list[0].name
channel = None
@@ -56,7 +57,7 @@ def select(version):
print("-----")
print("\t1)\tSwitch to version")
print("\t2)\tMain Menu")
- selection = raw_input('Choice: ')
+ selection = input('Choice: ')
if selection.isdigit():
selection = int(selection)
else:
@@ -96,7 +97,7 @@ def list_channels():
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"))
- selection = raw_input('Choice: ')
+ selection = input('Choice: ')
if selection.isdigit():
selection = int(selection)
else:
@@ -128,7 +129,7 @@ def main():
print("\t%d)\t%s" % (len(versions) + 1, "Switch Channel"))
print("\t%d)\t%s" % (len(versions) + 2, "Toggle Auto Updates"))
print("\t%d)\t%s" % (len(versions) + 3, "Exit"))
- selection = raw_input('Choice: ')
+ selection = input('Choice: ')
if selection.isdigit():
selection = int(selection)
else: