Path 1: 1183 calls (1.0)

'utf-8' (1135) 'utf-16le' (8) 'utf-32le' (8) 'iso-8859-1' (7) 'ascii' (4) 'utf' (1) 'utf-8sig' (1) 'utf8' (1) 'utf 8' (1) 'utf-16' (1)

'utf-8' (1140) 'utf-16le' (11) 'utf-32le' (9) 'iso-8859-1' (7) 'ascii' (5) 'utf-32' (3) 'utf-16' (2) 'utf-32be' (2) 'utf-16be' (2) 'utf' (1)

1def _normalize_codec_name(codec: str) -> str:
2    """Make sure the codec name is always given as defined in the BOM dict."""
3    return UTF_NAME_REGEX_COMPILED.sub(r"utf-\1\2", codec).lower()