Commit 425da522 authored by Stefan Behnel's avatar Stefan Behnel

fix doubled docstrings for Python classes

parent 635a3949
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment