X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Ffunctest_vacation.py;h=c2e40b07243f98162d97631168cdbea81811df95;hb=6587f877a3c6e2954d9e32a0652c6f0d1d356ab7;hp=6c7312fa08fa76373a6e3adf95187ee1f96c320c;hpb=3e3c96b2aa15d7757f281ce00518a67e2a1225a9;p=functest.git diff --git a/functest/utils/functest_vacation.py b/functest/utils/functest_vacation.py index 6c7312fa0..c2e40b072 100644 --- a/functest/utils/functest_vacation.py +++ b/functest/utils/functest_vacation.py @@ -1,6 +1,6 @@ from os import environ -from curses import initscr, curs_set, newwin, endwin,\ - KEY_RIGHT, KEY_LEFT, KEY_DOWN, KEY_UP +from curses import initscr, curs_set, newwin, endwin +from curses import KEY_RIGHT, KEY_LEFT, KEY_DOWN, KEY_UP from random import randrange @@ -48,6 +48,6 @@ def main(): print '\nSnake.PY-26lines by Kris Cieslak (defaultset.blogspot.com).' print 'OPNFV adaptation by Functest dream team.' - print 'Thanks for playing, your score: ' + \ - str(len(snake) - len(body) - 1) + '.' + score = str(len(snake) - len(body) - 1) + print ('Thanks for playing, your score: %s.' % score) print 'Find and fix more bugs in your real OPNFV setup!\n'