[Lxml-checkins] r46271 - lxml/trunk/src/lxml/tests
scoder at codespeak.net
scoder at codespeak.net
Mon Sep 3 13:54:40 CEST 2007
Author: scoder
Date: Mon Sep 3 13:54:37 2007
New Revision: 46271
Modified:
lxml/trunk/src/lxml/tests/common_imports.py
Log:
fix import
Modified: lxml/trunk/src/lxml/tests/common_imports.py
==============================================================================
--- lxml/trunk/src/lxml/tests/common_imports.py (original)
+++ lxml/trunk/src/lxml/tests/common_imports.py Mon Sep 3 13:54:37 2007
@@ -6,7 +6,7 @@
from lxml import etree
try:
- from xml.etree import ElementTree # Python 2.5
+ from xml.etree import ElementTree # Python 2.5+
except ImportError:
try:
from elementtree import ElementTree # standard ET
@@ -14,10 +14,10 @@
ElementTree = None
try:
- from xml.etree import cElementTree # Python 2.5
+ from xml.etree import cElementTree # Python 2.5+
except ImportError:
try:
- from celementtree import cElementTree # standard ET
+ import cElementTree # standard ET
except ImportError:
cElementTree = None
More information about the lxml-checkins
mailing list