feeds: fix .convert auto-convert

To fix inheritance loophole
master
pictuga 2020-03-20 12:20:41 +01:00
parent 08e39f5631
commit 4735ffba45
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class ParserBase(object):
return self.convert(FeedHTML).tostring(**k) return self.convert(FeedHTML).tostring(**k)
def convert(self, TargetParser): def convert(self, TargetParser):
if isinstance(self, TargetParser): if type(self) == TargetParser:
return self return self
target = TargetParser() target = TargetParser()