Fix for python 2 to use the safe raw_input() per default

This commit is contained in:
Joona Hoikkala 2015-06-05 12:19:38 +03:00
parent d6a14bc83d
commit 1737a550d3
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,11 @@ def prompt_for_user_token(username, scope=None, client_id = None,
print()
print()
response = input("Enter the URL you were redirected to: ")
try:
response = raw_input("Enter the URL you were redirected to: ")
except NameError:
response = input("Enter the URL you were redirected to: ")
print()
print()