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
0a93ccb4
Commit
0a93ccb4
authored
May 18, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CF: fix locals_expressions_T430 issue
parent
42fa1f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Cython/Compiler/FlowControl.py
Cython/Compiler/FlowControl.py
+6
-3
No files found.
Cython/Compiler/FlowControl.py
View file @
0a93ccb4
...
...
@@ -169,7 +169,8 @@ class ControlFlow(object):
if
self
.
block
and
self
.
is_tracked
(
entry
):
self
.
block
.
stats
.
append
(
NameReference
(
node
,
entry
))
# Local variable is definitely bound after this reference
self
.
block
.
bounded
.
add
(
entry
)
if
not
node
.
allow_null
:
self
.
block
.
bounded
.
add
(
entry
)
self
.
entries
.
add
(
entry
)
def
normalize
(
self
):
...
...
@@ -402,9 +403,11 @@ def check_definitions(flow, compiler_directives):
references
[
stat
.
node
]
=
stat
.
entry
stat
.
entry
.
cf_references
.
append
(
stat
)
stat
.
node
.
cf_state
.
update
(
state
[
stat
.
entry
])
state
[
stat
.
entry
].
discard
(
Uninitialized
)
if
not
stat
.
node
.
allow_null
:
state
[
stat
.
entry
].
discard
(
Uninitialized
)
for
assmt
in
state
[
stat
.
entry
]:
assmt
.
refs
.
add
(
stat
)
if
assmt
is
not
Uninitialized
:
assmt
.
refs
.
add
(
stat
)
# Check variable usage
warn_maybe_uninitialized
=
compiler_directives
[
'warn.maybe_uninitialized'
]
...
...
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