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): ...@@ -1921,7 +1921,7 @@ class PyClassDefNode(StatNode, BlockNode):
if self.doc and Options.docstrings: if self.doc and Options.docstrings:
if Options.embed_pos_in_docstring: if Options.embed_pos_in_docstring:
doc = 'File: %s (starting at line %s)'%relative_position(self.pos) 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) doc_node = ExprNodes.StringNode(pos, value = doc)
else: else:
doc_node = None 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