Skip to content

Commit

Permalink
a very small fix to the doc to reflect that the DAVClient object now …
Browse files Browse the repository at this point in the history
…is a context manager. Refers to #175
  • Loading branch information
tobixen committed Apr 25, 2022
1 parent 551fb48 commit 15215b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 15215b6

Please sign in to comment.