fluentfs.common.s.chomp¶
- fluentfs.common.s.chomp(s: str) str ¶
Removes a trailing newline from a string, if present.
Note that both “\n” and “\r\n” are counted as a trailing newline.
- Parameters:
s – The string.
- Returns:
The string without a trailing newline.