From 425da522ba1e8a98ff8b0d54239e54e8082c5663 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 10 Apr 2008 13:55:36 +0200 Subject: [PATCH] fix doubled docstrings for Python classes --- Cython/Compiler/Nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2