summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-01-26 20:24:49 +0000
committerRafael H. Schloming <rhs@apache.org>2009-01-26 20:24:49 +0000
commit0f7d1da9baa6906d2481bc05063ae7f8840c6aee (patch)
treeab614c028805120d9dcc9148322160e851f3e933
parentf7278c1d02b64511759ad0f87ab9b78d5eca2004 (diff)
downloadqpid-python-0f7d1da9baa6906d2481bc05063ae7f8840c6aee.tar.gz
Make sure docstrings are regular strings and not unicode. This works around a bug where epydoc ignores them if they're unicode.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@737818 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/qpid/generator.py b/python/qpid/generator.py
index 307ea562d7..729425d6a3 100644
--- a/python/qpid/generator.py
+++ b/python/qpid/generator.py
@@ -24,8 +24,8 @@ from spec010 import Control
def METHOD(module, inst):
method = lambda self, *args, **kwargs: self.invoke(inst, args, kwargs)
if sys.version_info[:2] > (2, 3):
- method.__name__ = inst.pyname
- method.__doc__ = inst.pydoc
+ method.__name__ = str(inst.pyname)
+ method.__doc__ = str(inst.pydoc)
method.__module__ = module
return method