mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262) (GH-8423)
(cherry picked from commit aba24ff360)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
committed by
Serhiy Storchaka
parent
519fc551d7
commit
220afffb68
@@ -1348,6 +1348,10 @@ err_input(perrdetail *err)
|
||||
msg = "unexpected indent";
|
||||
else if (err->token == DEDENT)
|
||||
msg = "unexpected unindent";
|
||||
else if (err->expected == NOTEQUAL) {
|
||||
errtype = PyExc_SyntaxError;
|
||||
msg = "with Barry as BDFL, use '<>' instead of '!='";
|
||||
}
|
||||
else {
|
||||
errtype = PyExc_SyntaxError;
|
||||
msg = "invalid syntax";
|
||||
|
||||
Reference in New Issue
Block a user