pydoc_fork

pydoc_fork.reporter.string_utils

 

String manipulation

Modules

Functions

cram(text: str, maximum_length: int) -> str
Omit part of a string if needed to make it fit in a maximum length.
replace(text: str, *pairs: str) -> str
Do a series of global replacements on a string.
>>> replace("abc xyz", "xyz", "abc")
'abc abc'
stripid(text: str) -> str
Remove the hexadecimal id from a Python object representation.

Data

LOGGER = <Logger pydoc_fork.reporter.string_utils (WARNING)>