]> granicus.if.org Git - python/commitdiff
Translate E_INDENT to the clearest error message I can think of.
authorGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 19:43:42 +0000 (19:43 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 19:43:42 +0000 (19:43 +0000)
Python/pythonrun.c

index 87b691aed1a8b9f5adb3791c97fedf5a3e63e9be..16aba5c3bcd2e7705ec6412f5ae01f49c54d964d 100644 (file)
@@ -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";