qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r737818 - /qpid/trunk/qpid/python/qpid/generator.py
Date Mon, 26 Jan 2009 20:24:50 GMT
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


Mime
View raw message