bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262)

This commit is contained in:
Serhiy Storchaka authored and GitHub committed 2018-07-23 23:41:11 +03:00
1 parent db8e3a1e44
commit aba24ff360
3 files changed
+22 -8

No files matched your search

+4
View File
@@ -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";