diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-25 18:27:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 18:27:36 (GMT) |
commit | 87d3b9db4ade1aa100ee6f065082cb7e85b8992f (patch) | |
tree | 85d17fff35bc28beb4a7c6e3a82276f2fa3760d5 /Parser | |
parent | ace018ca47c03ca699603341b12781b5329d2eaa (diff) | |
download | cpython-87d3b9db4ade1aa100ee6f065082cb7e85b8992f.zip cpython-87d3b9db4ade1aa100ee6f065082cb7e85b8992f.tar.gz cpython-87d3b9db4ade1aa100ee6f065082cb7e85b8992f.tar.bz2 |
bpo-39882: Add _Py_FatalErrorFormat() function (GH-19157)
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/grammar1.c | 2 | ||||
-rw-r--r-- | Parser/tokenizer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Parser/grammar1.c b/Parser/grammar1.c index e0b8fbb..c702040 100644 --- a/Parser/grammar1.c +++ b/Parser/grammar1.c @@ -41,7 +41,7 @@ PyGrammar_LabelRepr(label *lb) } } else { - Py_FatalError("invalid label"); + Py_FatalError("invalid grammar label"); return NULL; } } diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 75e8da4..c650442 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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; |