Fix exportvcalendar error is "is not" with a literal (Python 3.8 issue) (#1135)

Fixes #12000
This commit is contained in:
Paul Culley
2021-02-19 11:31:06 -06:00
committed by GitHub
parent b6fa5da8ee
commit f6bfb46fc0

View File

@@ -202,7 +202,7 @@ class CalendarWriter:
date = event.get_date_object()
place_handle = event.get_place_handle()
date_string = self.format_date(date, 1)
if date_string is not "":
if date_string != "":
# self.writeln("")
self.writeln("BEGIN:VEVENT")
time_s = time.gmtime(event.change)