feeds: avoid convert to self
This commit is contained in:
@@ -166,6 +166,9 @@ class ParserBase(object):
|
|||||||
return self.convert(FeedHTML).tostring(**k)
|
return self.convert(FeedHTML).tostring(**k)
|
||||||
|
|
||||||
def convert(self, TargetParser):
|
def convert(self, TargetParser):
|
||||||
|
if isinstance(self, TargetParser):
|
||||||
|
return self
|
||||||
|
|
||||||
target = TargetParser()
|
target = TargetParser()
|
||||||
|
|
||||||
for attr in target.dic:
|
for attr in target.dic:
|
||||||
|
Reference in New Issue
Block a user