Skip to content

Commit 71b2a42

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

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
@@ -2273,9 +2273,8 @@ New deprecations
22732273

22742274
* :mod:`shlex`:
22752275

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

22802279
(Contributed by Jay Berry in :gh:`148846`.)
22812280

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)