diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-01-26 20:24:49 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-01-26 20:24:49 +0000 |
commit | d8c1199a62dbff0e287b54b924ec4ccb319ac037 (patch) | |
tree | 3e666f8ee613ed4177ba6bb6181c565cacc4d6c5 | |
parent | 354b1cc23f9c11a4eecd37b8327e8502a0d23865 (diff) | |
download | qpid-python-d8c1199a62dbff0e287b54b924ec4ccb319ac037.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@737818 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/python/qpid/generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/python/qpid/generator.py b/qpid/python/qpid/generator.py index 307ea562d7..729425d6a3 100644 --- a/qpid/python/qpid/generator.py +++ b/qpid/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 |