republisher/repub/postprocessing.py

12 lines
281 B
Python
Raw Normal View History

2024-04-18 11:57:24 +02:00
class SortRssItems:
def __init__(self, file, feed_options):
self.file = file
self.feed_options = feed_options
self.buffer = ""
def write(self, data):
self.buffer += data.decode("utf-8")
def close(self):
self.file.write(sorted)