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
84238b48
Commit
84238b48
authored
Dec 19, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiny cleanup, fix #163
parent
780c73d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+3
-2
No files found.
Cython/Compiler/Optimize.py
View file @
84238b48
...
@@ -101,8 +101,7 @@ class IterationTransform(Visitor.VisitorTransform):
...
@@ -101,8 +101,7 @@ class IterationTransform(Visitor.VisitorTransform):
isinstance
(
function
,
ExprNodes
.
NameNode
)
and
\
isinstance
(
function
,
ExprNodes
.
NameNode
)
and
\
function
.
entry
.
is_builtin
and
\
function
.
entry
.
is_builtin
and
\
function
.
name
in
(
'range'
,
'xrange'
):
function
.
name
in
(
'range'
,
'xrange'
):
return
self
.
_transform_range_iteration
(
return
self
.
_transform_range_iteration
(
node
,
iterator
)
node
,
iterator
)
return
node
return
node
...
@@ -453,6 +452,8 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
...
@@ -453,6 +452,8 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform):
def
_find_handler
(
self
,
call_type
,
function
):
def
_find_handler
(
self
,
call_type
,
function
):
if
not
function
.
type
.
is_builtin_type
:
if
not
function
.
type
.
is_builtin_type
:
return
None
return
None
if
not
isinstance
(
function
,
ExprNodes
.
NameNode
):
return
None
handler
=
getattr
(
self
,
'_handle_%s_%s'
%
(
call_type
,
function
.
name
),
None
)
handler
=
getattr
(
self
,
'_handle_%s_%s'
%
(
call_type
,
function
.
name
),
None
)
if
handler
is
None
:
if
handler
is
None
:
handler
=
getattr
(
self
,
'_handle_any_%s'
%
function
.
name
,
None
)
handler
=
getattr
(
self
,
'_handle_any_%s'
%
function
.
name
,
None
)
...
...
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