From 0f7d1da9baa6906d2481bc05063ae7f8840c6aee Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Mon, 26 Jan 2009 20:24:49 +0000 Subject: 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 --- python/qpid/generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/qpid') 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 -- cgit v1.2.1