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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
fff6f74d
Commit
fff6f74d
authored
Oct 07, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #295 from andreasvc/master
Ignore any unused entry that starts with '_'.
parents
12a90000
9127f0ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/FlowControl.py
Cython/Compiler/FlowControl.py
+1
-1
No files found.
Cython/Compiler/FlowControl.py
View file @
fff6f74d
...
...
@@ -634,7 +634,7 @@ def check_definitions(flow, compiler_directives):
for
entry
in
flow
.
entries
:
if
(
not
entry
.
cf_references
and
not
entry
.
is_pyclass_attr
):
if
entry
.
name
!=
'_'
:
if
entry
.
name
!=
'_'
and
not
entry
.
name
.
startswith
(
'unused'
)
:
# '_' is often used for unused variables, e.g. in loops
if
entry
.
is_arg
:
if
warn_unused_arg
:
...
...
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