snakeoil.strings module

String related methods.

snakeoil.strings.doc_dedent(s)[source]

Support dedenting docstrings with initial line having no indentation.

snakeoil.strings.pluralism(obj, none=None, singular='', plural='s')[source]

Return singular or plural suffix depending on object’s length or value.