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
ret = []
for choice in orig:
ret.append(
self._external_type_obj.translate(
self._external_type_obj.data, choice) or choice)
trans = self._external_type_obj.translate(
self._external_type_obj.data, choice)
ret.append(trans or choice)
return ret