How to use the titlecase.__init__.ImmutableString function in titlecase

To help you get started, we’ve selected a few titlecase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ppannuto / python-titlecase / titlecase / __init__.py View on Github external
def _mark_immutable(text):
    if isinstance(text, bytes):
        return ImmutableBytes(text)
    return ImmutableString(text)