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
21ffedf5
Commit
21ffedf5
authored
Dec 19, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
66ffb55c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+3
-3
No files found.
Cython/Compiler/Optimize.py
View file @
21ffedf5
...
@@ -447,7 +447,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
...
@@ -447,7 +447,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
self
.
visitchildren
(
node
)
self
.
visitchildren
(
node
)
handler
=
self
.
_find_handler
(
'simple'
,
node
.
function
)
handler
=
self
.
_find_handler
(
'simple'
,
node
.
function
)
if
handler
is
not
None
:
if
handler
is
not
None
:
node
=
handler
(
node
,
node
.
arg_tuple
,
None
)
node
=
handler
(
node
,
node
.
arg_tuple
)
return
node
return
node
def
_find_handler
(
self
,
call_type
,
function
):
def
_find_handler
(
self
,
call_type
,
function
):
...
@@ -473,7 +473,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
...
@@ -473,7 +473,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
return
node
return
node
return
kwargs
return
kwargs
def
_handle_simple_set
(
self
,
node
,
pos_args
,
kwargs
):
def
_handle_simple_set
(
self
,
node
,
pos_args
):
"""Replace set([a,b,...]) by a literal set {a,b,...}.
"""Replace set([a,b,...]) by a literal set {a,b,...}.
"""
"""
if
not
isinstance
(
pos_args
,
ExprNodes
.
TupleNode
):
if
not
isinstance
(
pos_args
,
ExprNodes
.
TupleNode
):
...
@@ -496,7 +496,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
...
@@ -496,7 +496,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
else
:
else
:
return
node
return
node
def
_handle_simple_tuple
(
self
,
node
,
pos_args
,
kwargs
):
def
_handle_simple_tuple
(
self
,
node
,
pos_args
):
"""Replace tuple([...]) by a call to PyList_AsTuple.
"""Replace tuple([...]) by a call to PyList_AsTuple.
"""
"""
if
not
isinstance
(
pos_args
,
ExprNodes
.
TupleNode
):
if
not
isinstance
(
pos_args
,
ExprNodes
.
TupleNode
):
...
...
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