Skip to content

Commit 0cf91f2

Browse files
Changes
1 parent 4403936 commit 0cf91f2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Include/internal/pycore_unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ extern Py_ssize_t _PyUnicode_InsertThousandsGrouping(
261261
Behaviour is expected to be an exact match of `textwrap.dedent`.
262262
Return a new reference on success, NULL with an exception set on error.
263263
264-
Export for test_capi.test_unicode
264+
Export for '_testinternalcapi' shared extension.
265265
*/
266266
PyAPI_FUNC(PyObject*) _PyUnicode_Dedent(PyObject *unicode);
267267

Lib/test/test_capi/test_unicode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,6 @@ def foo():
11621162
'''
11631163
self.assertEqual(expect, dedent(text))
11641164

1165-
11661165
@support.cpython_only
11671166
@unittest.skipIf(_testlimitedcapi is None, 'need _testlimitedcapi module')
11681167
def test_concat(self):

Modules/_testinternalcapi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "pycore_pyerrors.h" // _PyErr_ChainExceptions1()
3535
#include "pycore_pylifecycle.h" // _PyInterpreterConfig_InitFromDict()
3636
#include "pycore_pystate.h" // _PyThreadState_GET()
37-
#include "pycore_unicodeobject.h" // _PyUnicode_TransformDecimalAndSpaceToASCII() / _PyUnicode_Dedent()
37+
#include "pycore_unicodeobject.h" // _PyUnicode_TransformDecimalAndSpaceToASCII(), _PyUnicode_Dedent()
3838

3939
#include "clinic/_testinternalcapi.c.h"
4040

@@ -1416,6 +1416,7 @@ unicode_transformdecimalandspacetoascii(PyObject *self, PyObject *arg)
14161416
return _PyUnicode_TransformDecimalAndSpaceToASCII(arg);
14171417
}
14181418

1419+
14191420
/* Test _PyUnicode_Dedent() */
14201421
static PyObject *
14211422
unicode_dedent(PyObject *self, PyObject *arg)

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14311,7 +14311,7 @@ unicode_getnewargs(PyObject *v, PyObject *Py_UNUSED(ignored))
1431114311
/*
1431214312
This function searches the longest common leading whitespace
1431314313
of all lines in the [src, end).
14314-
It returns the length of the common leading whitespace and sets *output* to
14314+
It returns the length of the common leading whitespace and sets `output` to
1431514315
point to the beginning of the common leading whitespace if length > 0.
1431614316
*/
1431714317
static Py_ssize_t
@@ -14389,7 +14389,7 @@ search_longest_common_leading_whitespace(
1438914389
}
1439014390

1439114391
/* Dedent a string.
14392-
Behaviour is expected to be an exact match of textwrap.dedent.
14392+
Behaviour is expected to be an exact match of `textwrap.dedent`.
1439314393
Return a new reference on success, NULL with an exception set on error.
1439414394
*/
1439514395
PyObject *

0 commit comments

Comments
 (0)