]> granicus.if.org Git - python/commitdiff
Use proper py3k syntax for relative import (from . import foo)
authorAlex Martelli <aleaxit@gmail.com>
Mon, 21 Aug 2006 20:54:38 +0000 (20:54 +0000)
committerAlex Martelli <aleaxit@gmail.com>
Mon, 21 Aug 2006 20:54:38 +0000 (20:54 +0000)
Lib/xml/etree/ElementInclude.py
Lib/xml/etree/ElementTree.py

index 974cc2146dc6cfa815cba4e48c1151be69be2020..d7f85b3217c4abf322a65aaf15583409c0919a57 100644 (file)
@@ -49,7 +49,7 @@
 ##
 
 import copy
-import ElementTree
+from . import ElementTree
 
 XINCLUDE = "{http://www.w3.org/2001/XInclude}"
 
index 7dbc72e78f958971268f4eec3ddbbbced2ee0070..deaed7d27be1609790b660436ce3fbcc5a137397 100644 (file)
@@ -133,9 +133,10 @@ class _SimpleElementPath:
         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