summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-19 13:48:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-19 13:48:11 (GMT)
commit79c1f964387a54259cd974507a6b0430331a7751 (patch)
treebe5c142c214d686c0a1949d006c491e9da61f9a5 /Parser
parent82138b8a84060472dfa06b92493e61a25b265d4d (diff)
downloadcpython-79c1f964387a54259cd974507a6b0430331a7751.zip
cpython-79c1f964387a54259cd974507a6b0430331a7751.tar.gz
cpython-79c1f964387a54259cd974507a6b0430331a7751.tar.bz2
only check this when parsing python
Diffstat (limited to 'Parser')
-rw-r--r--Parser/parsetok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 9b2d730..ad5f7ba 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -225,6 +225,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
n = ps->p_tree;
ps->p_tree = NULL;
+#ifndef PGEN
/* Check that the source for a single input statement really
is a single statement by looking at what is left in the
buffer after parsing. Trailing whitespace and comments
@@ -241,6 +242,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
n = NULL;
}
}
+#endif
}
else
n = NULL;