diff options
author | Fred Drake <fdrake@acm.org> | 2000-07-11 17:53:00 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-07-11 17:53:00 (GMT) |
commit | 85f363990cbd6df21015eebdc171c533176e3407 (patch) | |
tree | 4aa69857ffe21991384e379799f42ba308a58086 /Parser/parsetok.c | |
parent | 88e1932930245b2f7ed300ff8b31034db7ecda5b (diff) | |
download | cpython-85f363990cbd6df21015eebdc171c533176e3407.zip cpython-85f363990cbd6df21015eebdc171c533176e3407.tar.gz cpython-85f363990cbd6df21015eebdc171c533176e3407.tar.bz2 |
Create two new exceptions: IndentationError and TabError. These are
used for indentation related errors. This patch includes Ping's
improvements for indentation-related error messages.
Closes SourceForge patches #100734 and #100856.
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r-- | Parser/parsetok.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 9ac1606..9d090f1 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -139,8 +139,8 @@ parsetok(tok, g, start, err_ret) strncpy(str, a, len); str[len] = '\0'; if ((err_ret->error = - PyParser_AddToken(ps, (int)type, str, - tok->lineno)) != E_OK) { + PyParser_AddToken(ps, (int)type, str, tok->lineno, + &(err_ret->expected))) != E_OK) { if (err_ret->error != E_DONE) PyMem_DEL(str); break; |