[Python-checkins] cpython (2.7): Remove unused variables in parsetok().
georg.brandl
python-checkins at python.org
Sat Aug 11 11:17:34 CEST 2012
http://hg.python.org/cpython/rev/a82fc1f366b4
changeset: 78506:a82fc1f366b4
branch: 2.7
parent: 78503:e06ef4881136
user: Georg Brandl <georg at python.org>
date: Sat Aug 11 11:16:18 2012 +0200
summary:
Remove unused variables in parsetok().
files:
Parser/parsetok.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -131,7 +131,7 @@
{
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 @@
}
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 --
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list