From 386bafd391de4a9040ed76cf902c123ce43812ed Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 17 Jul 2017 00:13:15 +0200 Subject: [PATCH] readabilite: write_all use "node" instead of "item" --- morss/readabilite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss/readabilite.py b/morss/readabilite.py index c509025..36c9f5f 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -115,8 +115,8 @@ def score_all(root): def write_score_all(root, grades): - for item in root.iter(): - item.attrib['score'] = str(int(grades[item])) + for node in root.iter(): + node.attrib['score'] = str(int(grades[node])) def clean_html(root):