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
7093f8b0
Commit
7093f8b0
authored
May 23, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid unnecessary indentation level
parent
e852f3ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+15
-15
No files found.
Cython/Compiler/PyrexTypes.py
View file @
7093f8b0
...
...
@@ -47,23 +47,23 @@ class BaseType(object):
def
get_fused_types
(
self
,
result
=
None
,
seen
=
None
,
subtypes
=
None
):
subtypes
=
subtypes
or
self
.
subtypes
if
subtypes
:
if
result
is
None
:
result
=
[]
seen
=
set
()
for
attr
in
subtypes
:
list_or_subtype
=
getattr
(
self
,
attr
)
if
list_or_subtype
:
if
isinstance
(
list_or_subtype
,
BaseType
):
list_or_subtype
.
get_fused_types
(
result
,
seen
)
else
:
for
subtype
in
list_or_subtype
:
subtype
.
get_fused_types
(
result
,
seen
)
if
not
subtypes
:
return
None
return
result
if
result
is
None
:
result
=
[]
seen
=
set
()
for
attr
in
subtypes
:
list_or_subtype
=
getattr
(
self
,
attr
)
if
list_or_subtype
:
if
isinstance
(
list_or_subtype
,
BaseType
):
list_or_subtype
.
get_fused_types
(
result
,
seen
)
else
:
for
subtype
in
list_or_subtype
:
subtype
.
get_fused_types
(
result
,
seen
)
return
None
return
result
def
specialize_fused
(
self
,
env
):
if
env
.
fused_to_specific
:
...
...
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