From b02c19b530da2fd929296ef3ff56965128f081ef Mon Sep 17 00:00:00 2001 From: svatantrya Date: Tue, 19 May 2026 13:29:14 -0400 Subject: [PATCH] ics wb --- qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt.py b/qt.py index e9ba575..2068338 100644 --- a/qt.py +++ b/qt.py @@ -4032,8 +4032,8 @@ class BalCalendar: @staticmethod def write_temp_ics(content): fd, path = tempfile.mkstemp(prefix="event_", suffix=".ics") - with os.fdopen(fd, "wb", encoding="utf-8") as f: - f.write(content) + with os.fdopen(fd, "wb") as f: + f.write(content.encode("utf-8")) return path @staticmethod