Repository navigation
gh-79459 tempfile: Raise a ValueError if the prefix or suffix contains a directory component. - #150477
Conversation
ValueError if the prefix or suffix contains a directory component.ValueError if the prefix or suffix contains a directory component.
|
Thanks for the first round of reviews Victor! I won't presume to resolve any of the conversations without your approval. I deliberately didn't touch documentation for now because the contents would depend on knowing the version of Python this change would appear in. |
|
@mbyrnepr2: Your PR is still a draft. Please mark it as ready if you consider that it's ready for review. |
|
This PR is stale because it has been open for 90 days with no activity. |
|
Customary ping 😁. I don't like doing it so as not to be pushy but I just read a post on Discourse that mentioned this was the thing to do. |
vstinner
left a comment
There was a problem hiding this comment.
I don't think that we usually quote parameter names in error messages.
vstinner
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the updates. The test case now covers all cases, good.
But can you please add a Changelog (NEWS) entry? It's a significant change to reject values which were previously accepted.
Also, please fix the merge conflict (merge main into your branch).
Raise a ``ValueError`` if the ``prefix`` or ``suffix`` contains a directory component. pythongh-79459
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
e02e255 to
33b9fde
Compare
remove quotation marks from the error message.
|
Since it's a backward incompatible change, it should not be backported to Python 3.14 and 3.15. |
|
Merged. Thanks for your fix! |
|
Thank you @vstinner for all your help. It was a pleasure! |
tempfile: Raise a
ValueErrorif theprefixorsuffixcontains a directory component.gh-79459