Skip to content

Commit 140cbda

Browse files
authored
Fix minor typos in printer io (hardbyte#1044)
1 parent c949063 commit 140cbda

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎can/io/printer.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class Printer(BaseIOHandler, Listener):
1616
any messages it receives to the terminal (stdout). A message is turned into a
1717
string using :meth:`~can.Message.__str__`.
1818
19-
:attr bool write_to_file: `True` iff this instance prints to a file instead of
19+
:attr bool write_to_file: `True` if this instance prints to a file instead of
2020
standard out
2121
"""
2222

2323
def __init__(self, file=None, append=False):
2424
"""
25-
:param file: an optional path-like object or as file-like object to "print"
26-
to instead of writing to standard out (stdout)
27-
If this is a file-like object, is has to opened in text
25+
:param file: An optional path-like object or a file-like object to "print"
26+
to instead of writing to standard out (stdout).
27+
If this is a file-like object, is has to be opened in text
2828
write mode, not binary write mode.
2929
:param bool append: if set to `True` messages are appended to
3030
the file, else the file is truncated

0 commit comments

Comments
 (0)