feeds: fix .convert auto-convert

To fix inheritance loophole
This commit is contained in:
pictuga 2020-03-20 12:20:41 +01:00
parent 08e39f5631
commit 4735ffba45

View File

@ -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()