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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
ed53fdd9
Commit
ed53fdd9
authored
Dec 29, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix annotation writing after changing source position comments
parent
c6be9c54
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+1
-1
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+2
-0
No files found.
Cython/Compiler/Annotate.py
View file @
ed53fdd9
...
...
@@ -44,7 +44,7 @@ class AnnotationCCodeWriter(CCodeWriter):
if
pos
is
not
None
:
CCodeWriter
.
mark_pos
(
self
,
pos
)
if
self
.
last_pos
:
pos_code
=
self
.
code
.
setdefault
(
self
.
last_pos
[
0
].
get_description
()
,{})
pos_code
=
self
.
code
.
setdefault
(
self
.
last_pos
[
0
].
filename
,{})
code
=
pos_code
.
get
(
self
.
last_pos
[
1
],
""
)
pos_code
[
self
.
last_pos
[
1
]]
=
code
+
self
.
annotation_buffer
.
getvalue
()
self
.
annotation_buffer
=
StringIO
()
...
...
Cython/Compiler/Scanning.py
View file @
ed53fdd9
...
...
@@ -200,6 +200,8 @@ class StringSourceDescriptor(SourceDescriptor):
Instances of this class can be used instead of a filenames if the
code originates from a string object.
"""
filename
=
None
def
__init__
(
self
,
name
,
code
):
self
.
name
=
name
#self.set_file_type_from_name(name)
...
...
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