Remove python2 code

This commit is contained in:
Guillaume Gomez 2020-11-24 15:21:51 +01:00
parent de0ed0040a
commit 5b7c882497

View file

@ -34,10 +34,7 @@ def ask_yes_no_question(question, conf):
if conf.yes: if conf.yes:
print(question + 'y') print(question + 'y')
return True return True
if sys.version_info[0] < 3: line = input(question)
line = raw_input(question)
else:
line = input(question)
return line.strip().lower() == 'y' return line.strip().lower() == 'y'