Use correct return code for f.write

pull/613/head
Bastian Wegge 2024-05-01 20:05:24 +02:00
rodzic 65954efd25
commit e0a728e6d3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -335,7 +335,7 @@ Write to disk::
>>> directory = tempfile.mkdtemp() >>> directory = tempfile.mkdtemp()
>>> f = open(os.path.join(directory, 'example.ics'), 'wb') >>> f = open(os.path.join(directory, 'example.ics'), 'wb')
>>> f.write(cal.to_ical()) >>> f.write(cal.to_ical())
522 733
>>> f.close() >>> f.close()
Print out the calendar:: Print out the calendar::