feeds: drop .iterchildren

Redundant
master
pictuga 2018-10-25 01:16:28 +02:00
parent 17856929fe
commit d13362c4ac
1 changed files with 2 additions and 2 deletions

View File

@ -75,11 +75,11 @@ def tag_NS(tag, nsmap=NSMAP):
def inner_html(xml): def inner_html(xml):
return (xml.text or '') + ''.join([etree.tostring(child) for child in xml.iterchildren()]) return (xml.text or '') + ''.join([etree.tostring(child) for child in xml])
def clean_node(xml): def clean_node(xml):
[xml.remove(child) for child in xml.iterchildren()] [xml.remove(child) for child in xml]
class FeedException(Exception): class FeedException(Exception):