Skip to content

Commit 87d0ea7

Browse files
skirpichevvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent f2e3f8e commit 87d0ea7

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/deprecations/pending-removal-in-3.21.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ Pending removal in Python 3.21
2020

2121
* :mod:`struct`:
2222

23-
* Soft-deprecated since Python 3.15 using ``'F'`` and ``'D'`` type codes now
23+
* Soft-deprecated since Python 3.15, using ``'F'`` and ``'D'`` type codes are now
2424
deprecated. These codes will be removed in Python 3.21. Use instead
2525
two-letter forms ``'Zf'`` and ``'Zd'``.

Doc/whatsnew/3.16.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ New deprecations
487487

488488
* :mod:`struct`:
489489

490-
* Soft-deprecated since Python 3.15 using ``'F'`` and ``'D'`` type codes now
490+
* Soft-deprecated since Python 3.15, using ``'F'`` and ``'D'`` type codes are now
491491
deprecated. These codes will be removed in Python 3.21. Use instead
492492
two-letter forms ``'Zf'`` and ``'Zd'``.
493493
(Contributed by Sergey B Kirpichev in :gh:`121249`.)

Lib/test/test_struct.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,7 @@ def test_c_complex_round_trip(self):
10091009
with warnings.catch_warnings():
10101010
with self.assertWarns(DeprecationWarning):
10111011
b = struct.pack(f, z)
1012+
10121013
with warnings.catch_warnings():
10131014
warnings.simplefilter("error", DeprecationWarning)
10141015
self.assertRaises(DeprecationWarning, struct.unpack, f, b)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Deprecate using ``'F'`` and ``'D'`` type codes in the :mod:`struct`.
1+
Deprecate using ``'F'`` and ``'D'`` type codes in the :mod:`struct` module.

0 commit comments

Comments
 (0)