def _decode_simple(elem, typeof, is_iterable): """Decodes a simple type value. """ if is_iterable: return [convert.text_to_typed_value(i.text, typeof) for i in elem] return convert.text_to_typed_value(elem.text, typeof)
def _decode_simple(value, target_type, iterable): """Decodes a simple value. """ if iterable: return [convert.text_to_typed_value(i, target_type) for i in value] return convert.text_to_typed_value(value, target_type)
def _decode_simple(value, target_type, is_iterable): """Decodes a simple value. """ if is_iterable: return [convert.text_to_typed_value(i, target_type) for i in value] return convert.text_to_typed_value(value, target_type)
def _decode_simple(v, type, iterable): """Decodes a simple type value. """ if iterable: return [convert.text_to_typed_value(i.text, type) for i in v] else: return convert.text_to_typed_value(v.text, type)