]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] Doc: Recommend shlex.quote alongside pipes removal (GH-126570) (#126820)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Nov 2024 05:08:22 +0000 (06:08 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Nov 2024 05:08:22 +0000 (05:08 +0000)
commit94e536e283c2b6a85f5aa4d1806da1baf8d103bb
tree5501647b99703672a3ef927586b60940bdd4f84a
parent75d643166c967b8bac3e25b537e5fe3c71304b33
[3.13] Doc: Recommend shlex.quote alongside pipes removal (GH-126570) (#126820)

Doc: Recommend shlex.quote alongside pipes removal (GH-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.
(cherry picked from commit 73e34b680852794d110cd806505b3d74d9d593db)

Co-authored-by: Colin Watson <cjwatson@debian.org>
Doc/whatsnew/3.13.rst