Merge "Replace raw_input with input to make PY3 compatible"

This commit is contained in:
Jenkins 2016-07-10 13:54:25 +00:00 committed by Gerrit Code Review
commit e1fa77c3cc
1 changed files with 2 additions and 1 deletions

View File

@ -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: