In Python 3, the file objects explicitly expect str objects not bytes.
This means encoding the string causes an error. The work around
is to use the Python io module which backports the Python 3 open builtin
and allows using the 'encoding' keyword.
This is only relevant when saving a note when an exception is raised.
In Python 3, the file objects explicitly expect str objects not bytes. This means encoding the string causes an error. The work around is to use the Python io module which backports the Python 3 open builtin and allows using the 'encoding' keyword.
This is only relevant when saving a note when an exception is raised.