feeds: avoid convert to self

master
pictuga 2020-03-19 12:54:04 +01:00
parent bda51b0fc7
commit ee8c57c1fc
1 changed files with 3 additions and 0 deletions

View File

@ -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: