Commit 18392b6a authored by Stefan Behnel's avatar Stefan Behnel

fix unused error handling code

parent 04e462aa
...@@ -10,7 +10,7 @@ cython.declare(sys=object, os=object, copy=object, ...@@ -10,7 +10,7 @@ cython.declare(sys=object, os=object, copy=object,
py_object_type=object, ModuleScope=object, LocalScope=object, ClosureScope=object, py_object_type=object, ModuleScope=object, LocalScope=object, ClosureScope=object,
StructOrUnionScope=object, PyClassScope=object, StructOrUnionScope=object, PyClassScope=object,
CppClassScope=object, UtilityCode=object, EncodedString=object, CppClassScope=object, UtilityCode=object, EncodedString=object,
absolute_path_length=cython.Py_ssize_t) absolute_path_length=cython.Py_ssize_t, error_type=object)
import sys, os, copy import sys, os, copy
from itertools import chain from itertools import chain
...@@ -1175,8 +1175,8 @@ class CTupleBaseTypeNode(CBaseTypeNode): ...@@ -1175,8 +1175,8 @@ class CTupleBaseTypeNode(CBaseTypeNode):
for c in self.components: for c in self.components:
type = c.analyse(env) type = c.analyse(env)
if type.is_pyobject: if type.is_pyobject:
error(type_node.pos, "Tuple types can't (yet) contain Python objects.") error(c.pos, "Tuple types can't (yet) contain Python objects.")
return PyrexType.error_type return error_type
component_types.append(type) component_types.append(type)
type = PyrexTypes.c_tuple_type(component_types) type = PyrexTypes.c_tuple_type(component_types)
entry = env.declare_tuple_type(self.pos, type) entry = env.declare_tuple_type(self.pos, type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment