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

bpo-45853: fix misspelling in pathlib.py and an unused import #30292

Conversation

akulakov
Copy link
Contributor

@akulakov akulakov commented Dec 29, 2021

Not adding a news entry as the fix is not for a public name and unlikely to be used in downstream projects.

https://bugs.python.org/issue45853

@@ -8,7 +8,7 @@
import sys
import warnings
from _collections_abc import Sequence
from errno import EINVAL, ENOENT, ENOTDIR, EBADF, ELOOP
from errno import ENOENT, ENOTDIR, EBADF, ELOOP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing EINVAL can be a breaking change, since it might be used by 3rd party code.

It was there for 10+ years: https://github.com/python/cpython/blame/7ef1697be54a74314d5214d9ba0580d4e620694c/Lib/pathlib.py#L10

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is used by 3rd party code, it is a bug in that code.

@@ -8,7 +8,7 @@
import sys
import warnings
from _collections_abc import Sequence
from errno import EINVAL, ENOENT, ENOTDIR, EBADF, ELOOP
from errno import ENOENT, ENOTDIR, EBADF, ELOOP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is used by 3rd party code, it is a bug in that code.

@serhiy-storchaka serhiy-storchaka merged commit 8d7644f into python:main Dec 30, 2021
@akulakov akulakov deleted the 45853-Fix-spell-_ignored_erros-in-pathlib branch January 1, 2022 17:33
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

5 participants