GH-128520: pathlib ABCs: validate `magic_open()` arguments (#131617)
When `pathlib._os.magic_open()` is called to open a path in binary mode, raise `ValueError` if any of the *encoding*, *errors* or *newline* arguments are given. This matches the `open()` built-in.
B
Barney Gale committed
d716ea34cb8a105e8e39a1ddfd610c3c0f11a0e7
Parent: fbfb0e1
Committed by GitHub <noreply@github.com>
on 3/24/2025, 3:13:18 PM