From: Alex Martelli Date: Mon, 21 Aug 2006 20:54:38 +0000 (+0000) Subject: Use proper py3k syntax for relative import (from . import foo) X-Git-Tag: v3.0a1~1368 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5c45ba30f913f7ce8e69b49663cfea2f5aae7c8;p=python Use proper py3k syntax for relative import (from . import foo) --- diff --git a/Lib/xml/etree/ElementInclude.py b/Lib/xml/etree/ElementInclude.py index 974cc2146d..d7f85b3217 100644 --- a/Lib/xml/etree/ElementInclude.py +++ b/Lib/xml/etree/ElementInclude.py @@ -49,7 +49,7 @@ ## import copy -import ElementTree +from . import ElementTree XINCLUDE = "{http://www.w3.org/2001/XInclude}" diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index 7dbc72e78f..deaed7d27b 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -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