[Python-checkins] cpython (3.2): Remove unused variables in parsetok().

georg.brandl python-checkins at python.org
Sat Aug 11 11:16:15 CEST 2012


http://hg.python.org/cpython/rev/aeda45d58729
changeset: 78504:aeda45d58729
branch: 3.2
parent: 78500:e9e9f3e46148
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
@@ -127,7 +127,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");
@@ -154,7 +154,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

AltStyle によって変換されたページ (->オリジナル) /