|
@@ -6,5 +6,8 @@ def get_code(authorize_url):
|
|
message = "Check this link in your browser: {0}".format(authorize_url)
|
|
message = "Check this link in your browser: {0}".format(authorize_url)
|
|
sys.stderr.write(message + "\n")
|
|
sys.stderr.write(message + "\n")
|
|
try: input = raw_input
|
|
try: input = raw_input
|
|
- except NameError: pass
|
|
+ except NameError:
|
|
|
|
+
|
|
|
|
+ try: from builtins import input as input
|
|
|
|
+ except ImportError: pass
|
|
return input("Enter verification code: ")
|
|
return input("Enter verification code: ")
|