From 4735ffba4538db3a4da3d3faa81b56f43fcfd486 Mon Sep 17 00:00:00 2001 From: pictuga Date: Fri, 20 Mar 2020 12:20:41 +0100 Subject: [PATCH] feeds: fix .convert auto-convert To fix inheritance loophole --- morss/feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/feeds.py b/morss/feeds.py index 1e6959e..4bf4092 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -162,7 +162,7 @@ class ParserBase(object): return self.convert(FeedHTML).tostring(**k) def convert(self, TargetParser): - if isinstance(self, TargetParser): + if type(self) == TargetParser: return self target = TargetParser()