changed the old method name from_string to the new method name from_ical in docs/examples.rst.

pull/39/head
Rembane 2012-03-17 13:26:35 +01:00
rodzic be92f23ba8
commit 987befc0c3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -5,7 +5,7 @@ Examples
To open and parse a file::
>>> from icalendar import Calendar, Event
>>> cal = Calendar.from_string(open('test.ics','rb').read())
>>> cal = Calendar.from_ical(open('test.ics','rb').read())
>>> cal
VCALENDAR({'VERSION': vText(u'2.0'), 'METHOD': vText(u'Request'), 'PRODID': vText(u'-//My product//mxm.dk/')})