Skip to content

Commit 075c9a3

Browse files
committed
README: use print() with parenthesis in example
1 parent cb6b02d commit 075c9a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ Here's a simple program to print all the record fields in an activity file::
9696

9797
# Print the records name and value (and units if it has any)
9898
if record_data.units:
99-
print " * %s: %s %s" % (
99+
print(" * %s: %s %s" % (
100100
record_data.name, record_data.value, record_data.units,
101-
)
101+
))
102102
else:
103-
print " * %s: %s" % (record_data.name, record_data.value)
104-
print
103+
print(" * %s: %s" % (record_data.name, record_data.value))
104+
print()
105105

106106

107107
License

0 commit comments

Comments
 (0)