mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
Translate E_INDENT to the clearest error message I can think of.
This commit is contained in:
parent
bba92ca555
commit
560e8adef7
@ -997,6 +997,9 @@ err_input(err)
|
||||
case E_EOF:
|
||||
msg = "unexpected EOF while parsing";
|
||||
break;
|
||||
case E_INDENT:
|
||||
msg = "inconsistent use of tabs and spaces in indentation";
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "error=%d\n", err->error);
|
||||
msg = "unknown parsing error";
|
||||
|
Loading…
Reference in New Issue
Block a user