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()})