Skip to content

Commit

Permalink
README: use print() with parenthesis in example
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli committed Aug 15, 2017
1 parent cb6b02d commit 075c9a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/index.rst
Expand Up @@ -96,12 +96,12 @@ Here's a simple program to print all the record fields in an activity file::

# Print the records name and value (and units if it has any)
if record_data.units:
print " * %s: %s %s" % (
print(" * %s: %s %s" % (
record_data.name, record_data.value, record_data.units,
)
))
else:
print " * %s: %s" % (record_data.name, record_data.value)
print
print(" * %s: %s" % (record_data.name, record_data.value))
print()


License
Expand Down

0 comments on commit 075c9a3

Please sign in to comment.