From d13362c4ac5d06c68ecab8c085473b9615025a9f Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 25 Oct 2018 01:16:28 +0200 Subject: [PATCH] feeds: drop .iterchildren Redundant --- morss/feeds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/feeds.py b/morss/feeds.py index 7b8b67f..7aadb93 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -75,11 +75,11 @@ def tag_NS(tag, nsmap=NSMAP): 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): - [xml.remove(child) for child in xml.iterchildren()] + [xml.remove(child) for child in xml] class FeedException(Exception):