summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
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: