sanitize_list_with_broken_tuples¶
-
glotaran.parse.util.
sanitize_list_with_broken_tuples
(mangled_list: List[Union[str, float]]) → List[str][source]¶ Sanitize a list with ‘broken’ tuples
A list of broken tuples as returned by yaml when parsing tuples. e.g parsing the list of tuples [(3,100), (4,200)] results in a list of str [‘(3’, ‘100)’, ‘(4’, ‘200)’] which can be restored to a list with the tuples restored as strings [‘(3, 100)’, ‘(4, 200)’]