Fix ical printing

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.
pull/352/head
NicoHood 2022-04-08 16:37:22 +02:00 zatwierdzone przez GitHub
rodzic 90c0593506
commit 2e1569d641
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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::