Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions can/io/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class Printer(BaseIOHandler, Listener):
any messages it receives to the terminal (stdout). A message is turned into a
string using :meth:`~can.Message.__str__`.

:attr bool write_to_file: `True` iff this instance prints to a file instead of
:attr bool write_to_file: `True` if this instance prints to a file instead of
standard out
"""

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