Skip to content

Commit ae284ef

Browse files
Update README.rst
Update the README to use new getter/setter properties
1 parent 433260a commit ae284ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ Such a calendar can then be edited and saved again.
8181

8282
.. code:: python
8383
84-
>>> calendar["X-WR-CALNAME"] = "My Modified Calendar" # modify
85-
>>> print(calendar.to_ical()[:129]) # save modification
84+
>>> calendar.calendar_name = "My Modified Calendar" # modify
85+
>>> print(calendar.to_ical()[:121]) # save modification
8686
BEGIN:VCALENDAR
8787
VERSION:2.0
8888
PRODID:collective/icalendar
8989
CALSCALE:GREGORIAN
9090
METHOD:PUBLISH
91-
X-WR-CALNAME:My Modified Calendar
91+
NAME:My Modified Calendar
9292
9393
9494
Create Events, TODOs, Journals, Alarms, ...

0 commit comments

Comments
 (0)