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
Gwenaël Samain
cython
Commits
95f9cc5b
Commit
95f9cc5b
authored
Nov 26, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another Py3 fix for compiled Cython module
parent
5b101d97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+2
-2
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
95f9cc5b
...
@@ -331,13 +331,13 @@ def eliminate_rhs_duplicates(expr_list_list, ref_node_sequence):
...
@@ -331,13 +331,13 @@ def eliminate_rhs_duplicates(expr_list_list, ref_node_sequence):
if
node
in
ref_nodes
:
if
node
in
ref_nodes
:
return
ref_nodes
[
node
]
return
ref_nodes
[
node
]
elif
node
.
is_sequence_constructor
:
elif
node
.
is_sequence_constructor
:
node
.
args
=
map
(
substitute_nodes
,
node
.
args
)
node
.
args
=
list
(
map
(
substitute_nodes
,
node
.
args
)
)
return
node
return
node
# replace nodes inside of the common subexpressions
# replace nodes inside of the common subexpressions
for
node
in
ref_nodes
:
for
node
in
ref_nodes
:
if
node
.
is_sequence_constructor
:
if
node
.
is_sequence_constructor
:
node
.
args
=
map
(
substitute_nodes
,
node
.
args
)
node
.
args
=
list
(
map
(
substitute_nodes
,
node
.
args
)
)
# replace common subexpressions on all rhs items
# replace common subexpressions on all rhs items
for
expr_list
in
expr_list_list
:
for
expr_list
in
expr_list_list
:
...
...
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