fix: should not set encoding for binary file

This commit is contained in:
NateScarlet 2021-10-10 02:30:33 +08:00
parent 85248a1ed1
commit 885d2e58d5
No known key found for this signature in database
GPG Key ID: 5C242793B070309C

View File

@ -79,5 +79,5 @@ def generate_ics(data, filename):
name = "上班(补" + name + ")"
cal.add_component(_create_event(name, start, end))
with open(filename, "wb", encoding="utf8") as ics:
with open(filename, "wb") as ics:
ics.write(cal.to_ical())