pull/19/head
Yax 5 months ago
parent ac5345deec
commit d8a49f2be8

@ -52,5 +52,5 @@ class Rss:
lastBuildDate=datetime.now(),
items=items,
)
# pylint: disable=consider-using-with
rss.write_xml(open(self._rss_file, "w", encoding="utf-8"), encoding="utf-8")
with open(self._rss_file, "w", encoding="utf-8") as outfile:
rss.write_xml(outfile, encoding="utf-8")

Loading…
Cancel
Save