feeds: avoid convert to self
This commit is contained in:
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…
x
Reference in New Issue
Block a user