From: Stefan Behnel Date: Thu, 10 Apr 2008 11:55:36 +0000 (+0200) Subject: fix doubled docstrings for Python classes X-Git-Tag: 0.9.6.14~20^2~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=425da522ba1e8a98ff8b0d54239e54e8082c5663;p=cython.git fix doubled docstrings for Python classes --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 76a14ee6..eb593d2e 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1921,7 +1921,7 @@ class PyClassDefNode(StatNode, BlockNode): if self.doc and Options.docstrings: if Options.embed_pos_in_docstring: doc = 'File: %s (starting at line %s)'%relative_position(self.pos) - doc = doc + '\\n' + self.doc + doc = doc + '\\n' + self.doc doc_node = ExprNodes.StringNode(pos, value = doc) else: doc_node = None