feeds: fix .convert auto-convert
To fix inheritance loophole
This commit is contained in:
parent
08e39f5631
commit
4735ffba45
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user