Path 1: 18089 calls (1.0)

'\n' (5012) '' (3353) 'foo' (358) ' ' (200) 'bar' (189) 'Step 0' (154) ' try:' (144) 'Step 1' (140) 'Step 2' (126) 'Step 3' (112)

{7: None, 8: None, 11: None, 12: None, 13: None} (18089)

'\n' (5012) '' (3354) 'foo' (358) ' ' (200) 'bar' (189) 'Step 0' (154) ' try:' (144) 'Step 1' (140) 'Step 2' (126) 'Step 3' (112)

1def strip_control_codes(
2    text: str, _translate_table: Dict[int, None] = _CONTROL_STRIP_TRANSLATE
3) -> str:
4    """Remove control codes from text.
5
6    Args:
7        text (str): A string possibly contain control codes.
8
9    Returns:
10        str: String with control codes removed.
11    """
12    return text.translate(_translate_table)