Merge "Replace raw_input with input to make PY3 compatible"
This commit is contained in:
commit
e1fa77c3cc
|
@ -13,6 +13,7 @@
|
|||
# under the License.
|
||||
|
||||
import logging
|
||||
import six
|
||||
import sys
|
||||
|
||||
from vmware_nsx._i18n import _LI
|
||||
|
@ -74,7 +75,7 @@ def query_yes_no(question, default="yes"):
|
|||
|
||||
while True:
|
||||
sys.stdout.write(question + prompt)
|
||||
choice = raw_input().lower()
|
||||
choice = six.moves.input().lower()
|
||||
if default is not None and choice == '':
|
||||
return valid[default]
|
||||
elif choice in valid:
|
||||
|
|
Loading…
Reference in New Issue