Skip to content

Commit 73e34b6

Browse files
authored
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.
1 parent 6a93a1a commit 73e34b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,8 @@ and are now removed:
15681568
For audio playback, use the :pypi:`pygame` library from PyPI instead.
15691569
* :mod:`!pipes`:
15701570
Use the :mod:`subprocess` module instead.
1571+
Use :func:`shlex.quote` to replace the undocumented ``pipes.quote``
1572+
function.
15711573
* :mod:`!sndhdr`:
15721574
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
15731575
should be used as replacements.

0 commit comments

Comments
 (0)