Compare commits

...

1 Commits

Author SHA1 Message Date
Davide Andreoli 72fb44eff3 Make cython 0.21 happy
Simplify the statement so that it also compile with newer cythons
2014-09-22 18:50:54 +02:00
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