sidpy.base.string_utils.remove_extra_delimiters¶
- sidpy.base.string_utils.remove_extra_delimiters(line, separator=' ')[source]¶
Removes extra spaces (or other delimiters) between words in a line. Useful when parsing parameters (written by hand)
- Parameters:
line (str / unicode) – Line to be cleaned
separator (str / unicode, Optional. Default = ' ') – Separator between tokens
- Returns:
line – Line with extra separators removed
- Return type: