Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(49)

Unified Diff: Python/pythonrun.c

Issue 3353: make built-in tokenizer available via Python C API
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Python/ast.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1267,11 +1267,11 @@ err_input(perrdetail *err)
return;
case E_SYNTAX:
errtype = PyExc_IndentationError;
- if (err->expected == INDENT)
+ if (err->expected == PYTOK_INDENT)
msg = "expected an indented block";
- else if (err->token == INDENT)
+ else if (err->token == PYTOK_INDENT)
msg = "unexpected indent";
- else if (err->token == DEDENT)
+ else if (err->token == PYTOK_DEDENT)
msg = "unexpected unindent";
else {
errtype = PyExc_SyntaxError;
« no previous file with comments | « Python/ast.c ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+