Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 990ea05 commit b640de6Copy full SHA for b640de6
1 file changed
Cython/Compiler/ModuleNode.py
@@ -86,7 +86,9 @@ def extend_if_not_in(L1, L2):
86
self.scope.merge_in(scope)
87
88
def analyse_declarations(self, env):
89
- if Options.embed_pos_in_docstring:
+ if not Options.docstrings:
90
+ env.doc = self.doc = None
91
+ elif Options.embed_pos_in_docstring:
92
env.doc = EncodedString(u'File: %s (starting at line %s)' % Nodes.relative_position(self.pos))
93
if not self.doc is None:
94
env.doc = EncodedString(env.doc + u'\n' + self.doc)
0 commit comments