diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-02-27 17:18:40 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-02-27 17:18:40 +0000 |
| commit | cc1a3931c70ac1e78b33834c2d015241bf453ff7 (patch) | |
| tree | d29b74b3378d6f5c1a2ba3eaeef5f41c5e7ed4db /python | |
| parent | 0731e05211ff5e47e6a8b2c006bd6012da5cc161 (diff) | |
| download | qpid-python-cc1a3931c70ac1e78b33834c2d015241bf453ff7.tar.gz | |
improved error message
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@631657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
| -rw-r--r-- | python/mllib/dom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/mllib/dom.py b/python/mllib/dom.py index 10b19d6db1..7c759dbdd5 100644 --- a/python/mllib/dom.py +++ b/python/mllib/dom.py @@ -72,7 +72,7 @@ class Dispatcher: cls = cls.base return False - def dispatch(self, f): + def dispatch(self, f, attrs = ""): cls = self while cls != None: if hasattr(f, cls.type): @@ -81,7 +81,6 @@ class Dispatcher: cls = cls.base cls = self - attrs = "" while cls != None: if attrs: sep = ", " @@ -151,9 +150,10 @@ class Tag(Node): def dispatch(self, f): try: - method = getattr(f, "do_" + self.name) + attr = "do_" + self.name + method = getattr(f, attr) except AttributeError: - return Dispatcher.dispatch(self, f) + return Dispatcher.dispatch(self, f, "'%s'" % attr) return method(self) class Leaf(Component, Dispatcher): |
