From ee8c57c1fc71004c47b1315f95e1793a5df5bcfe Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 19 Mar 2020 12:54:04 +0100 Subject: [PATCH] feeds: avoid convert to self --- morss/feeds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morss/feeds.py b/morss/feeds.py index a02bbb6..5472d7d 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -166,6 +166,9 @@ class ParserBase(object): return self.convert(FeedHTML).tostring(**k) def convert(self, TargetParser): + if isinstance(self, TargetParser): + return self + target = TargetParser() for attr in target.dic: