From 3a338a9cd9c751a9e0ba5c4439127485b4c77f50 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 18 Dec 2013 01:21:36 -0800 Subject: [PATCH] Don't warn on un-assigned error types. --- Cython/Compiler/FlowControl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/FlowControl.py b/Cython/Compiler/FlowControl.py index 84ba168..8125f52 100644 --- a/Cython/Compiler/FlowControl.py +++ b/Cython/Compiler/FlowControl.py @@ -584,7 +584,8 @@ def check_definitions(flow, compiler_directives): node.cf_maybe_null = True if not entry.from_closure and len(node.cf_state) == 1: node.cf_is_null = True - if node.allow_null or entry.from_closure or entry.is_pyclass_attr: + if (node.allow_null or entry.from_closure + or entry.is_pyclass_attr or entry.type.is_error): pass # Can be uninitialized here elif node.cf_is_null: if entry.error_on_uninitialized or ( -- 2.7.4