Use proper py3k syntax for relative import (from . import foo)
This commit is contained in:
parent
fe25e236ed
commit
c5c45ba30f
|
@ -49,7 +49,7 @@
|
|||
##
|
||||
|
||||
import copy
|
||||
import ElementTree
|
||||
from . import ElementTree
|
||||
|
||||
XINCLUDE = "{http://www.w3.org/2001/XInclude}"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue