mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262)
This commit is contained in:
parent
db8e3a1e44
commit
aba24ff360
3 changed files with 22 additions and 8 deletions
|
|
@ -246,8 +246,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
|
|||
else if ((ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) &&
|
||||
strcmp(str, "<>")) {
|
||||
PyObject_FREE(str);
|
||||
err_ret->text = "with Barry as BDFL, use '<>' "
|
||||
"instead of '!='";
|
||||
err_ret->expected = NOTEQUAL;
|
||||
err_ret->error = E_SYNTAX;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue