[Lxml-checkins] r39381 - lxml/trunk/src/lxml

scoder at codespeak.net scoder at codespeak.net
Sun Feb 25 13:30:25 CET 2007


Author: scoder
Date: Sun Feb 25 13:30:24 2007
New Revision: 39381

Modified:
   lxml/trunk/src/lxml/ElementInclude.py
   lxml/trunk/src/lxml/sax.py
Log:
use relative imports for (lxml.)etree

Modified: lxml/trunk/src/lxml/ElementInclude.py
==============================================================================
--- lxml/trunk/src/lxml/ElementInclude.py	(original)
+++ lxml/trunk/src/lxml/ElementInclude.py	Sun Feb 25 13:30:24 2007
@@ -45,8 +45,7 @@
 # Limited XInclude support for the ElementTree package.
 ##
 
-import copy
-from lxml import etree
+import copy, etree
 
 try:
     set

Modified: lxml/trunk/src/lxml/sax.py
==============================================================================
--- lxml/trunk/src/lxml/sax.py	(original)
+++ lxml/trunk/src/lxml/sax.py	Sun Feb 25 13:30:24 2007
@@ -1,5 +1,5 @@
 from xml.sax.handler import ContentHandler
-from lxml.etree import ElementTree, Element, SubElement, LxmlError
+from etree import ElementTree, Element, SubElement, LxmlError
 
 class SaxError(LxmlError):
     pass


More information about the lxml-checkins mailing list