From b11f7681327a85df65dfaa410cce89bb305a23b8 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Mon, 15 Mar 2010 19:47:35 -0300 Subject: [PATCH] honor Options.docstrings for cdef members --- Cython/Compiler/ParseTreeTransforms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = '' -- 2.26.2