From: Stefan Behnel Date: Sat, 7 Dec 2013 06:17:58 +0000 (+0100) Subject: undo condition change in struct conversion - was required in case of utility code... X-Git-Tag: 0.20b1~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17191aad78edc402a7862e5c7a6b644f78740b50;p=platform%2Fupstream%2Fpython-cython.git undo condition change in struct conversion - was required in case of utility code creation --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index c0fca3b..53d457f 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -2842,7 +2842,7 @@ class CStructOrUnionType(CType): if self._convert_to_py_code is None: for member in self.scope.var_entries: - if (not member.type.to_py_function and + if (not member.type.to_py_function or not member.type.create_to_py_utility_code(env)): self.to_py_function = None self._convert_to_py_code = False @@ -2861,7 +2861,7 @@ class CStructOrUnionType(CType): if self._convert_from_py_code is None: for member in self.scope.var_entries: - if (not member.type.from_py_function and + if (not member.type.from_py_function or not member.type.create_from_py_utility_code(env)): self.from_py_function = None self._convert_from_py_code = False