dj_angles.strings

Module Contents

dj_angles.strings.dequotify(s: str) str

Removes single or double quotes from a string.

Parameters:

s (param) – The string to remove quotes from.

Returns:

A new string without the quotes or the original if there were no quotes.

dj_angles.strings.replace_newlines(s: str, replacement: str = '') str

Replaces newlines with the given replacement string.

Parameters:
  • s (param) – The string to replace newlines in.

  • replacement (param) – The string to replace the newlines with.

Returns:

A new string with the newlines replaced.