mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157)
This commit is contained in:
parent
ace018ca47
commit
87d3b9db4a
15 changed files with 158 additions and 110 deletions
|
|
@ -41,7 +41,7 @@ PyGrammar_LabelRepr(label *lb)
|
|||
}
|
||||
}
|
||||
else {
|
||||
Py_FatalError("invalid label");
|
||||
Py_FatalError("invalid grammar label");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1032,7 +1032,7 @@ tok_backup(struct tok_state *tok, int c)
|
|||
{
|
||||
if (c != EOF) {
|
||||
if (--tok->cur < tok->buf) {
|
||||
Py_FatalError("beginning of buffer");
|
||||
Py_FatalError("tokenizer beginning of buffer");
|
||||
}
|
||||
if (*tok->cur != c) {
|
||||
*tok->cur = c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue