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
b844422e
Commit
b844422e
authored
Jan 23, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test failure
parent
0b665f97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+10
-3
No files found.
Cython/Compiler/ModuleNode.py
View file @
b844422e
...
...
@@ -444,6 +444,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# poor developer's OrderedDict
vtab_dict
,
vtab_dict_order
=
{},
[]
vtabslot_dict
,
vtabslot_dict_order
=
{},
[]
for
module
in
module_list
:
for
entry
in
module
.
c_class_entries
:
if
entry
.
used
and
not
entry
.
in_cinclude
:
...
...
@@ -451,9 +452,15 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
key
=
type
.
vtabstruct_cname
if
not
key
:
continue
assert
key
not
in
vtab_dict
,
key
vtab_dict
[
key
]
=
entry
vtab_dict_order
.
append
(
key
)
if
key
in
vtab_dict
:
# FIXME: this should *never* happen, but apparently it does
# for Cython generated utility code
from
Cython.Compiler.UtilityCode
import
NonManglingModuleScope
assert
isinstance
(
entry
.
scope
,
NonManglingModuleScope
),
str
(
entry
.
scope
)
assert
isinstance
(
vtab_dict
[
key
].
scope
,
NonManglingModuleScope
),
str
(
vtab_dict
[
key
].
scope
)
else
:
vtab_dict
[
key
]
=
entry
vtab_dict_order
.
append
(
key
)
all_defined_here
=
module
is
env
for
entry
in
module
.
type_entries
:
if
entry
.
used
and
(
all_defined_here
or
entry
.
defined_in_pxd
):
...
...
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