Skip to content

Commit

Permalink
Merge pull request #352 from NicoHood/patch-1
Browse files Browse the repository at this point in the history
Fix ical printing doc
  • Loading branch information
niccokunzmann committed Aug 23, 2022
2 parents 22281cc + 2e1569d commit b07de56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The rendered view is easier to read::
So, let's define a function so we can easily display to_ical() output::

>>> def display(cal):
... return cal.to_ical().replace(b'\r\n', b'\n').strip()
... return cal.to_ical().decode("utf-8").replace(b'\r\n', b'\n').strip()

You can set multiple properties like this::

Expand Down

0 comments on commit b07de56

Please sign in to comment.