bronx.syntax.pretty¶
Making things pretty.
Functions¶
- bronx.syntax.pretty.smooth_string(s, escaped_characters={' ': '_', '(': '', ')': '', '*': '', '?': '', '[': '', ']': '', '{': '', '}': ''})[source]¶
Returns str(s) escaping special characters that may be forbidden in filenames.
- Parameters:
escaped_characters – special characters to escape, and their replacement in case.