]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Doc: Recommend shlex.quote alongside pipes removal (#126570)
authorColin Watson <cjwatson@debian.org>
Thu, 14 Nov 2024 05:01:35 +0000 (05:01 +0000)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 05:01:35 +0000 (05:01 +0000)
commit73e34b680852794d110cd806505b3d74d9d593db
tree32ef46d10709692363162bb8d2014f0913de7753
parent6a93a1adbb56a64ec6d20e8aab911439998502c9
Doc: Recommend shlex.quote alongside pipes removal (#126570)

One of the most common reasons I see the old `pipes` module still in use
when porting to Python 3.13 is for the undocumented `pipes.quote`
function, which can easily be replaced with `shlex.quote`.  I think it's
worth specifically calling this out, since being directed to the
`subprocess` module would be confusing in this case.
Doc/whatsnew/3.13.rst