Skip to content

Commit af2a037

Browse files
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent adb7884 commit af2a037

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Doc/using/cmdline.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ source.
7575

7676
.. versionchanged:: 3.14
7777
*command* is automatically dedented before execution.
78-
Only supports spaces and tabs and doesn't normalize empty lines.
78+
The auto-dedentation behavior only supports spaces and tabs,
79+
and does not normalize empty lines.
7980

8081
.. option:: -m <module-name>
8182

Doc/whatsnew/3.14.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,8 +1188,8 @@ Other language changes
11881188
(Contributed by Tomasz Pytel in :gh:`132329`.)
11891189

11901190
* The command-line option :option:`-c` now automatically dedents its code
1191-
argument before execution. Only supports spaces and tabs and doesn't
1192-
normalize empty lines.
1191+
argument before execution. The auto-dedentation behavior only
1192+
supports spaces and tabs and does not normalize empty lines.
11931193
(Contributed by Jon Crall and Steven Sun in :gh:`103998`.)
11941194

11951195
* Improve error message when an object supporting the synchronous

Misc/NEWS.d/3.14.0b1.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,8 @@ Improve error message when :exc:`TypeError` occurs during
18821882
.. section: Core and Builtins
18831883
18841884
String arguments passed to "-c" are now automatically dedented.
1885-
Only supports spaces and tabs and doesn't normalize empty lines.
1885+
Only space-based and tab-based indentations are supported;
1886+
empty lines are also not normalized.
18861887
This allows "python -c" invocations to be indented
18871888
in shell scripts without causing indentation errors. (Patch by Jon Crall and
18881889
Steven Sun)

0 commit comments

Comments
 (0)