kopia lustrzana https://github.com/collective/icalendar
Use correct return code for f.write
rodzic
65954efd25
commit
e0a728e6d3
|
@ -335,7 +335,7 @@ Write to disk::
|
|||
>>> directory = tempfile.mkdtemp()
|
||||
>>> f = open(os.path.join(directory, 'example.ics'), 'wb')
|
||||
>>> f.write(cal.to_ical())
|
||||
522
|
||||
733
|
||||
>>> f.close()
|
||||
|
||||
Print out the calendar::
|
||||
|
|
Ładowanie…
Reference in New Issue