Support for both input and raw_input in iOS target to avoid NameError with Python 3 (fixes #1070)
This commit is contained in:
parent
b566125f71
commit
d3fd1ad9e3
1 changed files with 8 additions and 2 deletions
|
@ -7,11 +7,12 @@ if sys.platform != 'darwin':
|
|||
raise NotImplementedError('Windows platform not yet working for Android')
|
||||
|
||||
import plistlib
|
||||
from buildozer import BuildozerCommandException
|
||||
from buildozer import BuildozerCommandException, IS_PY3
|
||||
from buildozer.target import Target, no_config
|
||||
from os.path import join, basename, expanduser, realpath
|
||||
from getpass import getpass
|
||||
|
||||
|
||||
PHP_TEMPLATE = '''
|
||||
<?php
|
||||
// credits goes to http://jeffreysambells.com/2010/06/22/ios-wireless-app-distribution
|
||||
|
@ -395,7 +396,12 @@ class TargetIos(Target):
|
|||
|
||||
save = None
|
||||
while save is None:
|
||||
q = raw_input('Do you want to save the password (Y/n): ')
|
||||
if IS_PY3:
|
||||
input_func = input
|
||||
else:
|
||||
input_func = raw_input
|
||||
|
||||
q = input_func('Do you want to save the password (Y/n): ')
|
||||
if q in ('', 'Y'):
|
||||
save = True
|
||||
elif q == 'n':
|
||||
|
|
Loading…
Reference in a new issue