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-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. #7695

Merged
merged 9 commits into from
Sep 18, 2018

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 14, 2018

Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresntative at the OS level.

https://bugs.python.org/issue33721

Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(),
os.path.isfile(), os.path.islink(), and os.path.ismount() now return False
instead of raising ValueError or its subclasses UnicodeEncodeError
and UnicodeDecodeError for paths that contain characters or bytes
unrepresntative at the OS level.
@serhiy-storchaka
Copy link
Member Author

Thank you for your review @vadmium!

@serhiy-storchaka serhiy-storchaka changed the title bpo-33721: Make some os.path functions be tolerant to invalid paths. bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. Aug 19, 2018
@serhiy-storchaka serhiy-storchaka merged commit 0185f34 into python:master Sep 18, 2018
@bedevere-bot
Copy link

@serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants