summaryrefslogtreecommitdiff
path: root/src/lxml/html
diff options
context:
space:
mode:
authorChris Gavin <chris@chrisgavin.me>2017-04-24 23:44:50 +0100
committerChris Gavin <chris@chrisgavin.me>2017-04-24 23:44:50 +0100
commitd505128a2164a9efcfdc06320d9f40d7eb8077d2 (patch)
tree5067708dcfbd50224a9098fcc1c4982344f2254a /src/lxml/html
parent1b156311b950e2722da3159afc5c882021f9e6c1 (diff)
downloadpython-lxml-d505128a2164a9efcfdc06320d9f40d7eb8077d2.tar.gz
Remove unused imports.
Diffstat (limited to 'src/lxml/html')
-rw-r--r--src/lxml/html/clean.py2
-rw-r--r--src/lxml/html/formfill.py2
-rw-r--r--src/lxml/html/soupparser.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lxml/html/clean.py b/src/lxml/html/clean.py
index 6270b93a..adc3f450 100644
--- a/src/lxml/html/clean.py
+++ b/src/lxml/html/clean.py
@@ -13,7 +13,7 @@ except ImportError:
from urllib.parse import urlsplit
from lxml import etree
from lxml.html import defs
-from lxml.html import fromstring, tostring, XHTML_NAMESPACE
+from lxml.html import fromstring, XHTML_NAMESPACE
from lxml.html import xhtml_to_html, _transform_result
try:
diff --git a/src/lxml/html/formfill.py b/src/lxml/html/formfill.py
index 61f0f076..2499a8e5 100644
--- a/src/lxml/html/formfill.py
+++ b/src/lxml/html/formfill.py
@@ -1,5 +1,5 @@
from lxml.etree import XPath, ElementBase
-from lxml.html import fromstring, tostring, XHTML_NAMESPACE
+from lxml.html import fromstring, XHTML_NAMESPACE
from lxml.html import _forms_xpath, _options_xpath, _nons, _transform_result
from lxml.html import defs
import copy
diff --git a/src/lxml/html/soupparser.py b/src/lxml/html/soupparser.py
index ef34ef59..202d0373 100644
--- a/src/lxml/html/soupparser.py
+++ b/src/lxml/html/soupparser.py
@@ -9,12 +9,12 @@ from lxml import etree, html
try:
from bs4 import (
BeautifulSoup, Tag, Comment, ProcessingInstruction, NavigableString,
- Declaration, CData, Doctype)
+ Declaration, Doctype)
_DECLARATION_OR_DOCTYPE = (Declaration, Doctype)
except ImportError:
from BeautifulSoup import (
BeautifulSoup, Tag, Comment, ProcessingInstruction, NavigableString,
- Declaration, CData)
+ Declaration)
_DECLARATION_OR_DOCTYPE = Declaration