From 1bc7838511cec1e2a0796718aee28d5a5cf4e6f4 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Thu, 15 Jul 2021 08:09:18 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/jigsaw_toxic.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/tasks/jigsaw_toxic.py b/python/tasks/jigsaw_toxic.py index 01e361c..b243d90 100644 --- a/python/tasks/jigsaw_toxic.py +++ b/python/tasks/jigsaw_toxic.py @@ -12,10 +12,12 @@ def kernel_1_sample_scrap(): t3 = t2('.comment__content') t6 = [] for o in t3: - t4 = pyquery.PyQUery(o) + t4 = pyquery.PyQuery(o) t5 = t4('.comment__header > a').attr['href'] t6.append( - author=t5, + dict( + author=t5, + ) ) pprint.pprint(t3)