Skip to content

Commit 74b0259

Browse files
Simplify
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 41c3dc9 commit 74b0259

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,7 @@ Command line and environment
897897
(Contributed by Noah Kim and Adam Turner in :gh:`118655`.)
898898

899899
* The command-line option :option:`-c` now automatically dedents its code
900-
argument before execution. The auto-dedentation behavior only
901-
supports spaces and tabs and does not normalize empty lines.
900+
argument before execution.
902901
(Contributed by Jon Crall and Steven Sun in :gh:`103998`.)
903902

904903
* :option:`!-J` is no longer a reserved flag for Jython_,

Include/internal/pycore_unicodeobject.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ extern PyObject* _PyUnicode_XStrip(
326326

327327

328328
/* Dedent a string.
329-
Only supports spaces and tabs and doesn't normalize empty lines.
329+
Intended to dedent Python source. Unlike `textwrap.dedent`, this
330+
only supports spaces and tabs and doesn't normalize empty lines.
330331
Return a new reference on success, NULL with exception set on error.
331332
*/
332333
extern PyObject* _PyUnicode_Dedent(PyObject *unicode);

Objects/unicodeobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13581,7 +13581,8 @@ search_longest_common_leading_whitespace(
1358113581
}
1358213582

1358313583
/* Dedent a string.
13584-
Only supports spaces and tabs and doesn't normalize empty lines.
13584+
Intended to dedent Python source. Unlike `textwrap.dedent`, this
13585+
only supports spaces and tabs and doesn't normalize empty lines.
1358513586
Return a new reference on success, NULL with exception set on error.
1358613587
*/
1358713588
PyObject *

0 commit comments

Comments
 (0)