Make cython 0.21 happy
Simplify the statement so that it also compile with newer cythons
This commit is contained in:
parent
ffeb5aaf2c
commit
72fb44eff3
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue