summaryrefslogtreecommitdiff
path: root/qpid/python/mllib
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-22 18:48:49 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-22 18:48:49 +0000
commit237f40cf63857bfd1a2a9d036f2609c21cd02b76 (patch)
treea301af5f596b6f50e16daa792137801f9691f272 /qpid/python/mllib
parent5b686d223970bc51d38440b03b901d97f9b93412 (diff)
downloadqpid-python-237f40cf63857bfd1a2a9d036f2609c21cd02b76.tar.gz
removed circular from imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@568726 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/mllib')
-rw-r--r--qpid/python/mllib/dom.py4
-rw-r--r--qpid/python/mllib/transforms.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/qpid/python/mllib/dom.py b/qpid/python/mllib/dom.py
index d95326d1a1..10b19d6db1 100644
--- a/qpid/python/mllib/dom.py
+++ b/qpid/python/mllib/dom.py
@@ -25,7 +25,7 @@ from __future__ import division
from __future__ import generators
from __future__ import nested_scopes
-from transforms import Text
+import transforms
class Container:
@@ -110,7 +110,7 @@ class Node(Container, Component, Dispatcher):
return nd
def text(self):
- return self.dispatch(Text())
+ return self.dispatch(transforms.Text())
def tag(self, name, *attrs, **kwargs):
t = Tag(name, *attrs, **kwargs)
diff --git a/qpid/python/mllib/transforms.py b/qpid/python/mllib/transforms.py
index bb79dcf192..69d99125e3 100644
--- a/qpid/python/mllib/transforms.py
+++ b/qpid/python/mllib/transforms.py
@@ -21,8 +21,8 @@
Useful transforms for dom objects.
"""
+import dom
from cStringIO import StringIO
-from dom import *
class Visitor:
@@ -45,12 +45,12 @@ class Identity:
return result
def default(self, tag):
- result = Tag(tag.name, *tag.attrs)
+ result = dom.Tag(tag.name, *tag.attrs)
result.extend(self.descend(tag))
return result
def tree(self, tree):
- result = Tree()
+ result = dom.Tree()
result.extend(self.descend(tree))
return result