Type-checks and possibly canonicalizes `return_elements`.
(return_elements)
| 126 | |
| 127 | |
| 128 | def _ProcessReturnElementsParam(return_elements): |
| 129 | """Type-checks and possibly canonicalizes `return_elements`.""" |
| 130 | if return_elements is None: |
| 131 | return None |
| 132 | if not all( |
| 133 | isinstance(x, compat.bytes_or_text_types) for x in return_elements): |
| 134 | raise TypeError('return_elements must be a list of strings.') |
| 135 | return tuple(compat.as_str(x) for x in return_elements) |
| 136 | |
| 137 | |
| 138 | def _FindAttrInOpDef(attr_name, op_def): |
no test coverage detected