bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529)

2 files changed