Preparing for refactor

This commit is contained in:
2017-09-27 20:32:54 -03:00
parent a564e43dff
commit 02558289ad
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ pip-log.txt
# Unit test / coverage reports # Unit test / coverage reports
.coverage .coverage
.tox .tox
.log
# Other filesystems # Other filesystems
.svn .svn

View File

@ -29,6 +29,8 @@ from copycat import Copycat, Reporter
class SimpleReporter(Reporter): class SimpleReporter(Reporter):
"""Reports results from a single run."""
def report_answer(self, answer): def report_answer(self, answer):
print('Answered %s (time %d, final temperature %.1f)' % ( print('Answered %s (time %d, final temperature %.1f)' % (
answer['answer'], answer['time'], answer['temp'], answer['answer'], answer['time'], answer['temp'],