diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2013-02-13 21:08:19 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2013-02-13 21:08:19 -0800 |
commit | ff0fc24b2885d76be2561aa08efe1d60682c8c27 (patch) | |
tree | 614ce78984f89e59cc559cb6919e5338c19cc907 /Cython/Compiler/FlowControl.py | |
parent | 6b05ae62bbd18348154437ac9e40515754dbf8f7 (diff) | |
download | cython-ff0fc24b2885d76be2561aa08efe1d60682c8c27.tar.gz |
Speccial case the unused '_' in warnings.
Diffstat (limited to 'Cython/Compiler/FlowControl.py')
-rw-r--r-- | Cython/Compiler/FlowControl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Compiler/FlowControl.py b/Cython/Compiler/FlowControl.py index 8b3ac3f0d..22f226997 100644 --- a/Cython/Compiler/FlowControl.py +++ b/Cython/Compiler/FlowControl.py @@ -616,7 +616,8 @@ def check_definitions(flow, compiler_directives): # Unused entries for entry in flow.entries: if (not entry.cf_references and not entry.is_pyclass_attr - and not entry.in_closure): + and not entry.in_closure + and entry.name != '_'): if entry.is_arg: if warn_unused_arg: messages.warning(entry.pos, "Unused argument '%s'" % |