Path 1: 537 calls (1.0)

PosixPath (537)

1 (535) 2 (1) 42 (1)

PosixPath (537)

PosixPath (537)

1def _get_pdata_path(
2    base_name: Path, recurs: int, pylint_home: Path = PYLINT_HOME_AS_PATH
3) -> Path:
4    # We strip all characters that can't be used in a filename. Also strip '/' and
5    # '\\' because we want to create a single file, not sub-directories.
6    underscored_name = "_".join(
7        str(p.replace(":", "_").replace("/", "_").replace("\\", "_"))
8        for p in base_name.parts
9    )
10    return pylint_home / f"{underscored_name}_{recurs}.stats"