Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
296cc2df
Commit
296cc2df
authored
Aug 13, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
embed positions fix
parent
f6ccc40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+4
-3
No files found.
Cython/Compiler/ModuleNode.py
View file @
296cc2df
...
...
@@ -23,7 +23,7 @@ import Version
from
Errors
import
error
,
warning
from
PyrexTypes
import
py_object_type
from
Cython.Utils
import
open_new_file
,
replace_suffix
,
escape_byte_string
from
Cython.Utils
import
open_new_file
,
replace_suffix
,
escape_byte_string
,
EncodedString
def
check_c_classes
(
module_node
):
...
...
@@ -45,9 +45,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def
analyse_declarations
(
self
,
env
):
if
Options
.
embed_pos_in_docstring
:
env
.
doc
=
'File: %s (starting at line %s)'
%
Nodes
.
relative_position
(
self
.
pos
)
env
.
doc
=
EncodedString
(
u'File: %s (starting at line %s)'
%
Nodes
.
relative_position
(
self
.
pos
)
)
if
not
self
.
doc
is
None
:
env
.
doc
=
env
.
doc
+
'
\
\
n'
+
self
.
doc
env
.
doc
=
EncodedString
(
env
.
doc
+
u'
\
\
n'
+
self
.
doc
)
env
.
doc
.
encoding
=
self
.
doc
.
encoding
else
:
env
.
doc
=
self
.
doc
self
.
body
.
analyse_declarations
(
env
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment