summaryrefslogtreecommitdiffstats
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)
commit02144cca2fe255d3b71e1fee479a2331cdb936db (patch)
tree760b0ad5158ea4a8f96142a9f797452d43fd6c93
parenteb068f9fa144441df79e3851fbac63532c2cf592 (diff)
downloadcpython-02144cca2fe255d3b71e1fee479a2331cdb936db.zip
cpython-02144cca2fe255d3b71e1fee479a2331cdb936db.tar.gz
cpython-02144cca2fe255d3b71e1fee479a2331cdb936db.tar.bz2
Remove unused variables in parsetok().
-rw-r--r--Parser/parsetok.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index e8d396a..069cc6b 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -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 --