mirror of https://github.com/python/cpython
Remove unused variables in parsetok().
This commit is contained in:
parent
eb068f9fa1
commit
02144cca2f
|
@ -131,7 +131,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
|
|||
{
|
||||
parser_state *ps;
|
||||
node *n;
|
||||
int started = 0, handling_import = 0, handling_with = 0;
|
||||
int started = 0;
|
||||
|
||||
if ((ps = PyParser_New(g, start)) == NULL) {
|
||||
fprintf(stderr, "no mem for new parser\n");
|
||||
|
@ -163,7 +163,6 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
|
|||
}
|
||||
if (type == ENDMARKER && started) {
|
||||
type = NEWLINE; /* Add an extra newline */
|
||||
handling_with = handling_import = 0;
|
||||
started = 0;
|
||||
/* Add the right number of dedent tokens,
|
||||
except if a certain flag is given --
|
||||
|
|
Loading…
Reference in New Issue