Commit 90dcd5ce authored by Robert Bradshaw's avatar Robert Bradshaw

Fixup.

parent 29067ceb
...@@ -3266,11 +3266,11 @@ class CStructOrUnionType(CType): ...@@ -3266,11 +3266,11 @@ class CStructOrUnionType(CType):
env.use_utility_code(self._convert_to_py_code) env.use_utility_code(self._convert_to_py_code)
return True return True
def can_coerce_from_pyobject(self): def can_coerce_from_pyobject(self, env):
if env.outer_scope is None or self._convert_from_py_code is False: if env.outer_scope is None or self._convert_from_py_code is False:
return False return False
for member in self.scope.var_entries: for member in self.scope.var_entries:
if not member.type.assignable_from_resolved_type(PyrexTypes.py_object_type): if not member.type.can_coerce_from_pyobject(env):
return False return False
return True return True
......
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