From 83ad6604bfc142bc31dd8cfc5a16292b40c708cf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 9 Sep 2024 11:03:29 +0530 Subject: [PATCH] pep8 --- recipes/scmp.recipe | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/recipes/scmp.recipe b/recipes/scmp.recipe index 1fd579f62b..8a57348143 100644 --- a/recipes/scmp.recipe +++ b/recipes/scmp.recipe @@ -4,9 +4,8 @@ scmp.com """ import json -import re -from datetime import datetime import time +from datetime import datetime from html5_parser import parse from lxml import etree @@ -23,8 +22,8 @@ def E(parent, name, text='', **attrs): def process_node(node, html_parent): ntype = node.get('type') - - if not ntype in {'track-viewed-percentage', 'inline-ad-slot', 'inline-widget', 'text'}: + + if ntype not in {'track-viewed-percentage', 'inline-ad-slot', 'inline-widget', 'text'}: c = html_parent.makeelement(ntype) if ntype != 'p': c.attrib.update({k: v or '' for k, v in node.get('attribs', {}).items()})