sanitize_dict_values¶
-
glotaran.parse.util.
sanitize_dict_values
(d: dict)[source]¶ Sanitizes a dict with broken tuples inside modifying it in-place Broken tuples are tuples that are turned into strings by the yaml parser. This functions calls sanitize_list_with_broken_tuples to glue the broken strings together and then calls list_to_tuple to turn the list with tuple strings back to number tuples.
- Args:
d (dict): A (complex) dict containing (possibly nested) values of broken tuple strings