kopia lustrzana https://github.com/collective/icalendar
changed the old method name from_string to the new method name from_ical in docs/examples.rst.
rodzic
be92f23ba8
commit
987befc0c3
|
@ -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/')})
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue