-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
GH-114610: Fix pathlib._abc.PurePathBase.with_suffix('.ext')
handling of stems
#114613
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
Conversation
…handling of stems Raise `ValueError` if `with_suffix('.ext')` is called on a path without a stem. Paths may only have a non-empty suffix if they also have a non-empty stem. ABC-only bugfix; no effect on public classes.
|
|
|
…handling of stems (python#114613) Raise `ValueError` if `with_suffix('.ext')` is called on a path without a stem. Paths may only have a non-empty suffix if they also have a non-empty stem. ABC-only bugfix; no effect on public classes.
Raise
ValueError
ifwith_suffix('.ext')
is called on a path without a stem. Paths may only have a non-empty suffix if they also have a non-empty stem.ABC-only bugfix; no effect on public classes.
pathlib.PurePath.with_stem('')
promotes file extension to stem #114610