From 15215b6c812ba2c8e75c673467ace58bd87ec841 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Mon, 25 Apr 2022 09:23:14 +0200 Subject: [PATCH] a very small fix to the doc to reflect that the DAVClient object now is a context manager. Refers to https://github.com/python-caldav/caldav/pull/175 --- docs/source/index.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index f0acdb4e..a8d71b40 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -100,8 +100,9 @@ Setting up a caldav client object and a principal object: .. code-block:: python - client = caldav.DAVClient(url=url, username=username, password=password) - my_principal = client.principal() + with caldav.DAVClient(url=url, username=username, password=password) as client: + my_principal = client.principal() + ... Fetching calendars: