mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use input() from six instead of raw_input to be compatible with Python3
This commit is contained in:
parent
0ea1af8b34
commit
c0a9d39525
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ import shutil
|
|||
import subprocess
|
||||
import six
|
||||
import six.moves.urllib as urllib
|
||||
from six.moves import input
|
||||
from subprocess import PIPE
|
||||
from zipfile import BadZipfile
|
||||
|
||||
|
@ -254,7 +255,7 @@ def salt(context, force=False):
|
|||
print('Something went wrong while bootstrapping')
|
||||
return retcode
|
||||
|
||||
proceed = raw_input(
|
||||
proceed = input(
|
||||
'Proposed changes are above, proceed with bootstrap? [y/N]: '
|
||||
)
|
||||
if proceed.lower() not in ['y', 'yes']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue