Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-128520: pathlib ABCs: validate magic_open() arguments #131617

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented Mar 23, 2025

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.

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.
@barneygale barneygale merged commit d716ea3 into python:main Mar 24, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant