Kaydet (Commit) c5c45ba3 authored tarafından Alex Martelli's avatar Alex Martelli

Use proper py3k syntax for relative import (from . import foo)

üst fe25e236
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
## ##
import copy import copy
import ElementTree from . import ElementTree
XINCLUDE = "{http://www.w3.org/2001/XInclude}" XINCLUDE = "{http://www.w3.org/2001/XInclude}"
......
...@@ -133,9 +133,10 @@ class _SimpleElementPath: ...@@ -133,9 +133,10 @@ class _SimpleElementPath:
return result return result
try: try:
import ElementPath from . import ElementPath
except ImportError: except ImportError:
# FIXME: issue warning in this case? # FIXME: issue warning in this case?
# TODO: DEFINITELY issue warning here!!!
ElementPath = _SimpleElementPath() ElementPath = _SimpleElementPath()
# TODO: add support for custom namespace resolvers/default namespaces # TODO: add support for custom namespace resolvers/default namespaces
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment