diff emeraldtree/ElementTree.py @ 47:e647f30cc08e

remove backwards compat code for python < 2.4
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 03 Aug 2008 20:59:44 +0200
parents c228aba7258c
children 547347034e65
line wrap: on
line diff
--- a/emeraldtree/ElementTree.py	Sun Jul 27 20:57:32 2008 +0200
+++ b/emeraldtree/ElementTree.py	Sun Aug 03 20:59:44 2008 +0200
@@ -1286,13 +1286,9 @@
         try:
             from xml.parsers import expat
         except ImportError:
-            try:
-                import pyexpat
-                expat = pyexpat
-            except ImportError:
-                raise ImportError(
-                    "No module named expat; use SimpleXMLTreeBuilder instead"
-                    )
+            raise ImportError(
+                "No module named expat; use SimpleXMLTreeBuilder instead"
+                )
         parser = expat.ParserCreate(encoding, "}")
         if target is None:
             target = TreeBuilder()