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
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue