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
Kirill Smelkov
cython
Commits
66bc1c6f
Commit
66bc1c6f
authored
Aug 18, 2008
by
HoytKoepke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash and bug in AnnotationCCodeWriter
parent
e4add80f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+3
-2
No files found.
Cython/Compiler/Annotate.py
View file @
66bc1c6f
...
@@ -19,8 +19,8 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -19,8 +19,8 @@ class AnnotationCCodeWriter(CCodeWriter):
def
__init__
(
self
,
create_from
=
None
,
buffer
=
None
,
copy_formatting
=
True
):
def
__init__
(
self
,
create_from
=
None
,
buffer
=
None
,
copy_formatting
=
True
):
CCodeWriter
.
__init__
(
self
,
create_from
,
buffer
,
copy_formatting
=
True
)
CCodeWriter
.
__init__
(
self
,
create_from
,
buffer
,
copy_formatting
=
True
)
self
.
annotation_buffer
=
StringIO
()
if
create_from
is
None
:
if
create_from
is
None
:
self
.
annotation_buffer
=
StringIO
()
self
.
annotations
=
[]
self
.
annotations
=
[]
self
.
last_pos
=
None
self
.
last_pos
=
None
self
.
code
=
{}
self
.
code
=
{}
...
@@ -29,6 +29,7 @@ class AnnotationCCodeWriter(CCodeWriter):
...
@@ -29,6 +29,7 @@ class AnnotationCCodeWriter(CCodeWriter):
self
.
annotation_buffer
=
create_from
.
annotation_buffer
self
.
annotation_buffer
=
create_from
.
annotation_buffer
self
.
annotations
=
create_from
.
annotations
self
.
annotations
=
create_from
.
annotations
self
.
code
=
create_from
.
code
self
.
code
=
create_from
.
code
self
.
last_pos
=
create_from
.
last_pos
def
create_new
(
self
,
create_from
,
buffer
,
copy_formatting
):
def
create_new
(
self
,
create_from
,
buffer
,
copy_formatting
):
return
AnnotationCCodeWriter
(
create_from
,
buffer
,
copy_formatting
)
return
AnnotationCCodeWriter
(
create_from
,
buffer
,
copy_formatting
)
...
...
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