mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Add missing closing quote and trailing period in str.isidentifier() docstring (GH-9756)
This rectifies commit ffc5a14d00
.
This commit is contained in:
parent
ffc5a14d00
commit
fc8205cb4b
2 changed files with 4 additions and 4 deletions
|
@ -12101,12 +12101,12 @@ str.isidentifier as unicode_isidentifier
|
|||
Return True if the string is a valid Python identifier, False otherwise.
|
||||
|
||||
Call keyword.iskeyword(s) to test whether string s is a reserved identifier,
|
||||
such as "def" or "class
|
||||
such as "def" or "class".
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
unicode_isidentifier_impl(PyObject *self)
|
||||
/*[clinic end generated code: output=fe585a9666572905 input=2fb643aafbcf0e1c]*/
|
||||
/*[clinic end generated code: output=fe585a9666572905 input=2d807a104f21c0c5]*/
|
||||
{
|
||||
return PyBool_FromLong(PyUnicode_IsIdentifier(self));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue