From: Vitja Makarov Date: Sun, 2 Jun 2013 09:07:28 +0000 (+0400) Subject: Fix error_on_uninitialized condition X-Git-Tag: 0.20b1~502^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eda120d511bfa8c636bde7450399b09c75b85558;p=platform%2Fupstream%2Fpython-cython.git Fix error_on_uninitialized condition --- diff --git a/Cython/Compiler/FlowControl.py b/Cython/Compiler/FlowControl.py index efb25b6..7b2e39a 100644 --- a/Cython/Compiler/FlowControl.py +++ b/Cython/Compiler/FlowControl.py @@ -575,9 +575,9 @@ def check_definitions(flow, compiler_directives): if node.allow_null or entry.from_closure or entry.is_pyclass_attr: pass # Can be uninitialized here elif node.cf_is_null: - if Options.error_on_uninitialized and ( - entry.type.is_pyobject or entry.type.is_unspecified or - entry.error_on_uninitialized): + if entry.error_on_uninitialized or ( + Options.error_on_uninitialized and ( + entry.type.is_pyobject or entry.type.is_unspecified)): messages.error( node.pos, "local variable '%s' referenced before assignment"