From adbaed9e5411b286a4b78a489f4cd4fe25795b17 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 11 Nov 2018 17:24:56 +0100 Subject: [PATCH] feeds: put code tgt --- morss/feeds.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/morss/feeds.py b/morss/feeds.py index 669891d..26af2e2 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -483,13 +483,6 @@ class Feed(object): return len(self.get_raw('items')) -class FeedXML(Feed, ParserXML): - itemsClass = 'ItemXML' - - def tostring(self, **k): - return etree.tostring(self.root.getroottree(), **k) - - class Item(Uniq): dic = ('title', 'link', 'desc', 'content', 'id', 'is_permalink', 'time', 'updated') @@ -536,5 +529,12 @@ class Item(Uniq): lambda f: f.rmv('item_updated') ) +class FeedXML(Feed, ParserXML): + itemsClass = 'ItemXML' + + def tostring(self, **k): + return etree.tostring(self.root.getroottree(), **k) + + class ItemXML(Item, ParserXML): pass