mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix typos in multiple files (GH-26689)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
736ed6f7a9
commit
17b16e13bb
24 changed files with 1023 additions and 1023 deletions
|
|
@ -1187,12 +1187,12 @@ static int
|
|||
verify_end_of_number(struct tok_state *tok, int c, const char *kind)
|
||||
{
|
||||
/* Emit a deprecation warning only if the numeric literal is immediately
|
||||
* followed by one of keywords which can occurr after a numeric literal
|
||||
* followed by one of keywords which can occur after a numeric literal
|
||||
* in valid code: "and", "else", "for", "if", "in", "is" and "or".
|
||||
* It allows to gradually deprecate existing valid code without adding
|
||||
* warning before error in most cases of invalid numeric literal (which
|
||||
* would be confusiong and break existing tests).
|
||||
* Raise a syntax error with slighly better message than plain
|
||||
* would be confusing and break existing tests).
|
||||
* Raise a syntax error with slightly better message than plain
|
||||
* "invalid syntax" if the numeric literal is immediately followed by
|
||||
* other keyword or identifier.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue