From: Kurt Smith Date: Tue, 17 Mar 2009 19:57:58 +0000 (-0500) Subject: Fix 135 -- scope objects have return_type set to None by default X-Git-Tag: 0.11.3.rc0~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eca913f6fcbbec00d8429dde7a38ac4d023d6145;p=cython.git Fix 135 -- scope objects have return_type set to None by default --- diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index b649fbaa..08ba3a91 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -251,6 +251,7 @@ class Scope(object): self.pystring_entries = [] self.buffer_entries = [] self.control_flow = ControlFlow.LinearControlFlow() + self.return_type = None def start_branching(self, pos): self.control_flow = self.control_flow.start_branch(pos)