Make cython 0.21 happy

Simplify the statement so that it also compile with newer cythons
This commit is contained in:
Davide Andreoli 2014-09-22 18:47:42 +02:00
parent ffeb5aaf2c
commit 72fb44eff3
1 changed files with 3 additions and 3 deletions

View File

@ -305,9 +305,9 @@ cdef class ExternalParamInfoChoice(ExternalParamInfo):
orig = self.choices orig = self.choices
ret = [] ret = []
for choice in orig: for choice in orig:
ret.append( trans = self._external_type_obj.translate(
self._external_type_obj.translate( self._external_type_obj.data, choice)
self._external_type_obj.data, choice) or choice) ret.append(trans or choice)
return ret return ret