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
753f069b
Commit
753f069b
authored
Jul 17, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix circular import
parent
8f146a67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-5
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
753f069b
...
...
@@ -2591,14 +2591,12 @@ class ReplaceFusedTypeChecks(VisitorTransform):
elif fused_t in other_fused_type:
...
"""
# Defer the import until now to avoid circularity...
from
Cython.Compiler
import
Optimize
transform
=
Optimize
.
ConstantFolding
(
reevaluate
=
True
)
def
__init__
(
self
,
local_scope
):
super
(
ReplaceFusedTypeChecks
,
self
).
__init__
()
self
.
local_scope
=
local_scope
# defer the import until now to avoid circular import time dependencies
from
Cython.Compiler
import
Optimize
self
.
transform
=
Optimize
.
ConstantFolding
(
reevaluate
=
True
)
def
visit_IfStatNode
(
self
,
node
):
"""
...
...
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