Skip to content

Commit

Permalink
Fix ical printing
Browse files Browse the repository at this point in the history
There more be more places in the doc, where this is required. I was not 100% sure, so I only fixed this obvious, confirmed bug.
  • Loading branch information
NicoHood authored Apr 8, 2022
1 parent 90c0593 commit 2e1569d
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 2e1569d

Please sign in to comment.