summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorAlex Martelli <aleaxit@gmail.com>2006-08-21 20:54:38 (GMT)
committerAlex Martelli <aleaxit@gmail.com>2006-08-21 20:54:38 (GMT)
commitc5c45ba30f913f7ce8e69b49663cfea2f5aae7c8 (patch)
tree779d98a2fe310a6ae19df0b1f2a60a0d8d582d61 /Lib/xml
parentfe25e236ed3cb3415f8674693f00970181d4edc2 (diff)
downloadcpython-c5c45ba30f913f7ce8e69b49663cfea2f5aae7c8.zip
cpython-c5c45ba30f913f7ce8e69b49663cfea2f5aae7c8.tar.gz
cpython-c5c45ba30f913f7ce8e69b49663cfea2f5aae7c8.tar.bz2
Use proper py3k syntax for relative import (from . import foo)
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/etree/ElementInclude.py2
-rw-r--r--Lib/xml/etree/ElementTree.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/xml/etree/ElementInclude.py b/Lib/xml/etree/ElementInclude.py
index 974cc21..d7f85b3 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 7dbc72e..deaed7d 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