mirror of
https://github.com/python/cpython.git
synced 2026-05-09 06:01:08 -04:00
d716ea34cb
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.