r1077@spiff: Fredrik | 2005-12-12 22:58:44 +0100

make sure xml.etree can be used even if PyXML is present
 (solution proposed by Philip J. Eby)
This commit is contained in:
Fredrik Lundh 2005-12-12 21:59:52 +00:00
parent 245c619e86
commit af57fa13f4
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ else:
else:
if v >= _MINIMUM_XMLPLUS_VERSION:
import sys
_xmlplus.__path__.extend(__path__)
sys.modules[__name__] = _xmlplus
else:
del v