Skip to content

Commit f3756b0

Browse files
committed
Tweak whatsnew and news entry for shlex.quote based on picnixz's review
1 parent d000ccd commit f3756b0

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,9 +1741,8 @@ New deprecations
17411741

17421742
* :mod:`shlex`:
17431743

1744-
* :func:`shlex.quote` has a new keyword-only parameter *force* that ensures
1745-
a string will always be quoted, even if it is already safe for a shell
1746-
without being quoted.
1744+
* Add keyword-only parameter *force* to :func:`shlex.quote` to force quoting
1745+
a string, even if it is already safe for a shell without being quoted.
17471746

17481747
(Contributed by Jay Berry in :gh:`148846`.)
17491748

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Add *force* keyword only argument to :func:`shlex.quote` to always quote the
2-
string passed to it, even if it is already safe for a shell without being
3-
quoted.
1+
Add keyword-only parameter *force* to :func:`shlex.quote` to force quoting
2+
a string, even if it is already safe for a shell without being quoted.

0 commit comments

Comments
 (0)