]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40107: Switch to using io.open() for pathlib.Path.open() (GH-25240)
authorBarney Gale <barney.gale@gmail.com>
Fri, 9 Apr 2021 20:52:49 +0000 (21:52 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Apr 2021 20:52:49 +0000 (21:52 +0100)
commit11c3bd3f6d06649484b81a659c7bf02d6632e607
tree6fae86f755ac4ba975ab777455918233bddd2a40
parent2d7fdc90731e132f9d6b43852ee112f25831394b
bpo-40107: Switch to using io.open() for pathlib.Path.open() (GH-25240)

Previously we had identical behaviour but only allowed accessors to override os.open(). This change allows the override to also construct the IO wrapper as well.
Lib/pathlib.py