From d3fe51cea5fce01ae4866abfaf40144b1de1c1f8 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 19 Mar 2020 09:49:52 +0100 Subject: [PATCH] feeds: remove duplicated code --- morss/feeds.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/morss/feeds.py b/morss/feeds.py index b7f85cb..896dd3b 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -436,10 +436,6 @@ class ParserHTML(ParserXML): def tostring(self, **k): return lxml.html.tostring(self.root, **k) - @staticmethod - def _inner_html(xml): - return (xml.text or b'') + b''.join([lxml.html.tostring(child) for child in xml]) - def rule_search_all(self, rule): try: # do proper "class" matching (too "heavy" to type as-it in rules)