From d19c692ad2f0a00beb4d892d2a165bdd270b1446 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 21 Jun 2018 11:49:25 +0200 Subject: Fix a few issues pointed out by pylint --- crocoite/html.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'crocoite/html.py') diff --git a/crocoite/html.py b/crocoite/html.py index f891101..c929a10 100644 --- a/crocoite/html.py +++ b/crocoite/html.py @@ -105,7 +105,6 @@ eventAttributes = {'onabort', from html5lib.treewalkers.base import TreeWalker from html5lib.filters.base import Filter -from html5lib.serializer import HTMLSerializer from html5lib import constants class ChromeTreeWalker (TreeWalker): @@ -195,7 +194,6 @@ class StripAttributeFilter (Filter): self.attributes = set (map (str.lower, attributes)) def __iter__(self): - default_namespace = constants.namespaces["html"] for token in Filter.__iter__(self): data = token.get ('data') if data and token['type'] in {'StartTag', 'EmptyTag'}: -- cgit v1.2.3