summaryrefslogtreecommitdiff
path: root/Lib/xml/etree/ElementTree.py
diff options
context:
space:
mode:
authorAlex Martelli <aleaxit@gmail.com>2006-08-21 20:54:38 +0000
committerAlex Martelli <aleaxit@gmail.com>2006-08-21 20:54:38 +0000
commitc5c45ba30f913f7ce8e69b49663cfea2f5aae7c8 (patch)
tree779d98a2fe310a6ae19df0b1f2a60a0d8d582d61 /Lib/xml/etree/ElementTree.py
parentfe25e236ed3cb3415f8674693f00970181d4edc2 (diff)
downloadcpython-git-c5c45ba30f913f7ce8e69b49663cfea2f5aae7c8.tar.gz
Use proper py3k syntax for relative import (from . import foo)
Diffstat (limited to 'Lib/xml/etree/ElementTree.py')
-rw-r--r--Lib/xml/etree/ElementTree.py3
1 files changed, 2 insertions, 1 deletions
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