From 2e1569d641b763c92fa7216b6f4b48cc239fc199 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Fri, 8 Apr 2022 16:37:22 +0200 Subject: [PATCH] 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. --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index c00c3865..48b6e9b7 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -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::