feeds: avoid convert to self
parent
bda51b0fc7
commit
ee8c57c1fc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue