mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-130790: Remove references about unicode's readiness from comments (#130801)
This commit is contained in:
parent
8a64a62002
commit
3a7f17c7e2
11 changed files with 9 additions and 28 deletions
|
@ -308,9 +308,7 @@ verify_end_of_number(struct tok_state *tok, int c, const char *kind) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* Verify that the identifier follows PEP 3131.
|
||||
All identifier strings are guaranteed to be "ready" unicode objects.
|
||||
*/
|
||||
/* Verify that the identifier follows PEP 3131. */
|
||||
static int
|
||||
verify_identifier(struct tok_state *tok)
|
||||
{
|
||||
|
|
|
@ -509,8 +509,6 @@ _PyPegen_new_identifier(Parser *p, const char *n)
|
|||
if (!id) {
|
||||
goto error;
|
||||
}
|
||||
/* PyUnicode_DecodeUTF8 should always return a ready string. */
|
||||
assert(PyUnicode_IS_READY(id));
|
||||
/* Check whether there are non-ASCII characters in the
|
||||
identifier; if so, normalize to NFKC. */
|
||||
if (!PyUnicode_IS_ASCII(id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue