You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/01/26 21:24:50 UTC
svn commit: r737818 - /qpid/trunk/qpid/python/qpid/generator.py
Author: rhs
Date: Mon Jan 26 20:24:49 2009
New Revision: 737818
URL: http://svn.apache.org/viewvc?rev=737818&view=rev
Log:
Make sure docstrings are regular strings and not unicode. This works around a bug where epydoc ignores them if they're unicode.
Modified:
qpid/trunk/qpid/python/qpid/generator.py
Modified: qpid/trunk/qpid/python/qpid/generator.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/generator.py?rev=737818&r1=737817&r2=737818&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/generator.py (original)
+++ qpid/trunk/qpid/python/qpid/generator.py Mon Jan 26 20:24:49 2009
@@ -24,8 +24,8 @@
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
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org