Skip to content

Commit 9b1ae08

Browse files
authored
Tweak code review suggestions
1 parent 9db5c40 commit 9b1ae08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,13 +939,13 @@ This change is specified in :pep:`765`.
939939

940940
In situations where this change is inconvenient (such as those where the
941941
warnings are redundant due to code linting), the :ref:`warning filter
942-
<warning-filter>` can be used to turn off all syntax warnings, by using the
943-
``ignore::SyntaxWarning`` filter. This can be specified in combination
942+
<warning-filter>` can be used to turn off all syntax warnings by adding
943+
``ignore::SyntaxWarning`` as a filter. This can be specified in combination
944944
with a filter that converts other warnings to errors (for example, passing
945945
``-Werror -Wignore::SyntaxWarning`` as CLI options, or setting
946946
``PYTHONWARNINGS=error,ignore::SyntaxWarning``).
947947

948-
Note that applying such a filter at runtime, using the :mod:`warnings` module
948+
Note that applying such a filter at runtime using the :mod:`warnings` module
949949
will only suppress the warning in code that is compiled *after* the filter is
950950
adjusted. Code that is compiled prior to the filter adjustment (for example,
951951
when a module is imported) will still emit the syntax warning.

0 commit comments

Comments
 (0)