From: Lisandro Dalcin Date: Mon, 15 Mar 2010 22:47:35 +0000 (-0300) Subject: honor Options.docstrings for cdef members X-Git-Tag: 0.13.beta0~279 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b11f7681327a85df65dfaa410cce89bb305a23b8;p=cython.git honor Options.docstrings for cdef members --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 1f1f4753..01ea5aaa 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1067,7 +1067,8 @@ property NAME: # --------------------------------------- # XXX This should go to AutoDocTransforms # --------------------------------------- - if self.current_directives['embedsignature']: + if (Options.docstrings and + self.current_directives['embedsignature']): attr_name = entry.name type_name = entry.type.declaration_code("", for_display=1) default_value = ''