mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
RSS: Open dump file in text mode (json uses text mode).
This commit is contained in:
parent
7ac053d8f1
commit
1265f9229a
@ -159,7 +159,7 @@ class RSS(callbacks.Plugin):
|
|||||||
|
|
||||||
def _flush(self):
|
def _flush(self):
|
||||||
l = [(f.name, f.announced_entries) for f in self.feeds.values()]
|
l = [(f.name, f.announced_entries) for f in self.feeds.values()]
|
||||||
with utils.file.AtomicFile(announced_headlines_filename, 'wb',
|
with utils.file.AtomicFile(announced_headlines_filename, 'w',
|
||||||
backupDir='/dev/null') as fd:
|
backupDir='/dev/null') as fd:
|
||||||
save_announces_db(l, fd)
|
save_announces_db(l, fd)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user