Author: alex.martelli
Date: Mon Aug 21 22:54:38 2006
New Revision: 51445

Modified:
   python/branches/p3yk/Lib/xml/etree/ElementInclude.py
   python/branches/p3yk/Lib/xml/etree/ElementTree.py
Log:
Use proper py3k syntax for relative import (from . import foo)



Modified: python/branches/p3yk/Lib/xml/etree/ElementInclude.py
==============================================================================
--- python/branches/p3yk/Lib/xml/etree/ElementInclude.py        (original)
+++ python/branches/p3yk/Lib/xml/etree/ElementInclude.py        Mon Aug 21 
22:54:38 2006
@@ -49,7 +49,7 @@
 ##
 
 import copy
-import ElementTree
+from . import ElementTree
 
 XINCLUDE = "{http://www.w3.org/2001/XInclude}";
 

Modified: python/branches/p3yk/Lib/xml/etree/ElementTree.py
==============================================================================
--- python/branches/p3yk/Lib/xml/etree/ElementTree.py   (original)
+++ python/branches/p3yk/Lib/xml/etree/ElementTree.py   Mon Aug 21 22:54:38 2006
@@ -133,9 +133,10 @@
         return result
 
 try:
-    import ElementPath
+    from . import ElementPath
 except ImportError:
     # FIXME: issue warning in this case?
+    # TODO: DEFINITELY issue warning here!!!
     ElementPath = _SimpleElementPath()
 
 # TODO: add support for custom namespace resolvers/default namespaces
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to