refactor: rename variable

This commit is contained in:
NateScarlet 2021-10-10 02:50:30 +08:00
parent 158a13d145
commit b40ca384c2
No known key found for this signature in database
GPG Key ID: 5C242793B070309C

View File

@ -80,5 +80,5 @@ def generate_ics(days: Sequence[dict], filename: Text) -> None:
name = "上班(补" + name + ")"
cal.add_component(_create_event(name, start, end))
with open(filename, "wb") as ics:
ics.write(cal.to_ical())
with open(filename, "wb") as f:
f.write(cal.to_ical())