summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 06:05:43 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 06:05:43 (GMT)
commit2f48d892d4036b500f5b79d152b3166b4d205dc9 (patch)
tree84b7b98bf34da03b275e04726884c27ec33c917b /Lib/xml
parent8269a44d5095cbd0c351aedc41272e9a6d91c269 (diff)
downloadcpython-2f48d892d4036b500f5b79d152b3166b4d205dc9.zip
cpython-2f48d892d4036b500f5b79d152b3166b4d205dc9.tar.gz
cpython-2f48d892d4036b500f5b79d152b3166b4d205dc9.tar.bz2
Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/__init__.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py
index deed983..bf6d8dd 100644
--- a/Lib/xml/__init__.py
+++ b/Lib/xml/__init__.py
@@ -18,24 +18,3 @@ etree -- The ElementTree XML library. This is a subset of the full
__all__ = ["dom", "parsers", "sax", "etree"]
-
-_MINIMUM_XMLPLUS_VERSION = (0, 8, 4)
-
-
-try:
- import _xmlplus
-except ImportError:
- pass
-else:
- try:
- v = _xmlplus.version_info
- except AttributeError:
- # _xmlplus is too old; ignore it
- pass
- else:
- if v >= _MINIMUM_XMLPLUS_VERSION:
- import sys
- _xmlplus.__path__.extend(__path__)
- sys.modules[__name__] = _xmlplus
- else:
- del v