summaryrefslogtreecommitdiff
path: root/crocoite/html.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-11-19 15:49:28 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-11-19 15:50:16 +0100
commit3c009f3ff45d89a703bc833c900e06a79b32f1c1 (patch)
tree16f398f4c2adf1d9d072281983a4b7f27d77820f /crocoite/html.py
parenta5561785fb66f49c2b76557c6f6745eedb4d8b73 (diff)
downloadcrocoite-3c009f3ff45d89a703bc833c900e06a79b32f1c1.tar.gz
crocoite-3c009f3ff45d89a703bc833c900e06a79b32f1c1.tar.bz2
crocoite-3c009f3ff45d89a703bc833c900e06a79b32f1c1.zip
Coding style
Fix a few random issues pointed out by pylint, mainly unused imports.
Diffstat (limited to 'crocoite/html.py')
-rw-r--r--crocoite/html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/crocoite/html.py b/crocoite/html.py
index c929a10..fec9760 100644
--- a/crocoite/html.py
+++ b/crocoite/html.py
@@ -22,6 +22,10 @@
HTML helper
"""
+from html5lib.treewalkers.base import TreeWalker
+from html5lib.filters.base import Filter
+from html5lib import constants
+
# HTML void tags, see https://html.spec.whatwg.org/multipage/syntax.html#void-elements
voidTags = {'area',
'base',
@@ -103,10 +107,6 @@ eventAttributes = {'onabort',
'onvolumechange',
'onwaiting'}
-from html5lib.treewalkers.base import TreeWalker
-from html5lib.filters.base import Filter
-from html5lib import constants
-
class ChromeTreeWalker (TreeWalker):
"""
Recursive html5lib TreeWalker for Google Chrome method DOM.getDocument