Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 560e8ad

Browse files
committed
Translate E_INDENT to the clearest error message I can think of.
1 parent bba92ca commit 560e8ad

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Python/pythonrun.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,9 @@ err_input(err)
997997
case E_EOF:
998998
msg = "unexpected EOF while parsing";
999999
break;
1000+
case E_INDENT:
1001+
msg = "inconsistent use of tabs and spaces in indentation";
1002+
break;
10001003
default:
10011004
fprintf(stderr, "error=%d\n", err->error);
10021005
msg = "unknown parsing error";

0 commit comments

Comments
 (0)