feeds: avoid convert to self

This commit is contained in:
pictuga 2020-03-19 12:54:04 +01:00
parent bda51b0fc7
commit ee8c57c1fc

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: