summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2017-03-17 20:39:38 +0100
committerJakub Wilk <jwilk@jwilk.net>2017-03-17 21:53:41 +0100
commit728127054d2ff8937b64b1479b26bb4a113c0091 (patch)
tree91a519ddb41eca8eec6f3d6e4ec00f471505e0c3 /src
parentdecc2f0ee4dbf3223f1005f97de110d2ed0d1b44 (diff)
downloadpython-lxml-728127054d2ff8937b64b1479b26bb4a113c0091.tar.gz
remove conditional imports of the set module
These were needed for Python 2.3, which is no longer supported.
Diffstat (limited to 'src')
-rw-r--r--src/lxml/ElementInclude.py6
-rw-r--r--src/lxml/html/defs.py6
2 files changed, 0 insertions, 12 deletions
diff --git a/src/lxml/ElementInclude.py b/src/lxml/ElementInclude.py
index f7806709..ab2ee879 100644
--- a/src/lxml/ElementInclude.py
+++ b/src/lxml/ElementInclude.py
@@ -60,12 +60,6 @@ except ImportError:
from urllib.parse import urljoin
from urllib.request import urlopen
-try:
- set
-except NameError:
- # Python 2.3
- from sets import Set as set
-
XINCLUDE = "{http://www.w3.org/2001/XInclude}"
XINCLUDE_INCLUDE = XINCLUDE + "include"
diff --git a/src/lxml/html/defs.py b/src/lxml/html/defs.py
index e6ca5882..caf6b21b 100644
--- a/src/lxml/html/defs.py
+++ b/src/lxml/html/defs.py
@@ -6,12 +6,6 @@
# and http://www.w3.org/community/webed/wiki/HTML/New_HTML5_Elements
# for html5_tags.
-try:
- frozenset
-except NameError:
- from sets import Set as frozenset
-
-
empty_tags = frozenset([
'area', 'base', 'basefont', 'br', 'col', 'frame', 'hr',
'img', 'input', 'isindex', 'link', 'meta', 'param'])