Fix 135 -- scope objects have return_type set to None by default
authorKurt Smith <kwsmith1@wisc.edu>
Tue, 17 Mar 2009 19:57:58 +0000 (14:57 -0500)
committerKurt Smith <kwsmith1@wisc.edu>
Tue, 17 Mar 2009 19:57:58 +0000 (14:57 -0500)
Cython/Compiler/Symtab.py

index b649fbaae9562645df86b0ce26d33279b30afb4a..08ba3a91bf69f311f6d2e22f5cea9cea149d8cf1 100644 (file)
@@ -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)