diff options
author | Rafael H. Schloming <rhs@apache.org> | 2007-08-22 18:48:49 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2007-08-22 18:48:49 +0000 |
commit | 737f9a39b069e9094de335e44e5517d293195daa (patch) | |
tree | 39a7ba669a7817d37e04e4da5482cfbbe86e027a | |
parent | 51c4f612aec73b473477cacb786865c76284e002 (diff) | |
download | qpid-python-737f9a39b069e9094de335e44e5517d293195daa.tar.gz |
removed circular from imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568726 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | python/mllib/dom.py | 4 | ||||
-rw-r--r-- | python/mllib/transforms.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/python/mllib/dom.py b/python/mllib/dom.py index d95326d1a1..10b19d6db1 100644 --- a/python/mllib/dom.py +++ b/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/python/mllib/transforms.py b/python/mllib/transforms.py index bb79dcf192..69d99125e3 100644 --- a/python/mllib/transforms.py +++ b/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 |