Skip to content

Commit fc8205c

Browse files
lelitwillingc
authored andcommitted
Add missing closing quote and trailing period in str.isidentifier() docstring (GH-9756)
This rectifies commit ffc5a14.
1 parent ffc5a14 commit fc8205c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Objects/clinic/unicodeobject.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12101,12 +12101,12 @@ str.isidentifier as unicode_isidentifier
1210112101
Return True if the string is a valid Python identifier, False otherwise.
1210212102
1210312103
Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
12104-
such as "def" or "class
12104+
such as "def" or "class".
1210512105
[clinic start generated code]*/
1210612106

1210712107
static PyObject *
1210812108
unicode_isidentifier_impl(PyObject *self)
12109-
/*[clinic end generated code: output=fe585a9666572905 input=2fb643aafbcf0e1c]*/
12109+
/*[clinic end generated code: output=fe585a9666572905 input=2d807a104f21c0c5]*/
1211012110
{
1211112111
return PyBool_FromLong(PyUnicode_IsIdentifier(self));
1211212112
}

0 commit comments

Comments
 (0)