[Python-checkins] cpython: only check this when parsing python

benjamin.peterson python-checkins at python.org
Thu Jan 19 14:48:23 CET 2012


http://hg.python.org/cpython/rev/24198f86d523
changeset:   74524:24198f86d523
user:        Benjamin Peterson <benjamin at python.org>
date:        Thu Jan 19 08:48:11 2012 -0500
summary:
  only check this when parsing python

files:
  Parser/parsetok.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Parser/parsetok.c b/Parser/parsetok.c
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -225,6 +225,7 @@
         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 @@
                 n = NULL;
             }
         }
+#endif
     }
     else
         n = NULL;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list