Preparing for refactor
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
|||||||
2
main.py
2
main.py
@ -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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user