Fix conanfile for python3

This commit is contained in:
James Benton
2019-01-17 23:14:36 +00:00
parent ddac0ea83b
commit 993e5a554e

View File

@@ -23,9 +23,13 @@ def query_yes_no(question, default="yes"):
else:
raise ValueError("invalid default answer: '%s'" % default)
global input
try: input = raw_input
except NameError: pass
while True:
sys.stdout.write(question + prompt)
choice = raw_input().lower()
choice = input().lower()
if default is not None and choice == '':
return valid[default]
elif choice in valid: