summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-08-11 09:16:18 (GMT)
committerGeorg Brandl <georg@python.org>2012-08-11 09:16:18 (GMT)
commitcc98887e457c293c7be3b9cd9599c5334a97064b (patch)
treed35be298de641e4f09f4775357a3c3c92aae7362 /Parser
parent7b250a5cffe1075ead51d8b46948f7bf169c07fe (diff)
downloadcpython-cc98887e457c293c7be3b9cd9599c5334a97064b.zip
cpython-cc98887e457c293c7be3b9cd9599c5334a97064b.tar.gz
cpython-cc98887e457c293c7be3b9cd9599c5334a97064b.tar.bz2
Remove unused variables in parsetok().
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 73e7e3c..bb9afc4 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -127,7 +127,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");
@@ -154,7 +154,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 --