[pypy-svn] pypy compile-from-stream: Fix one test in module/_ast

amauryfa commits-noreply at bitbucket.org
Tue Mar 22 19:55:57 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: compile-from-stream
Changeset: r42848:8abe7f2848bc
Date: 2011-03-22 19:50 +0100
http://bitbucket.org/pypy/pypy/changeset/8abe7f2848bc/

Log:	Fix one test in module/_ast

diff --git a/pypy/interpreter/pyparser/future.py b/pypy/interpreter/pyparser/future.py
--- a/pypy/interpreter/pyparser/future.py
+++ b/pypy/interpreter/pyparser/future.py
@@ -35,6 +35,8 @@
                 break
             if isinstance(elem.value, ast.Str):
                 found_docstring = True
+        else:
+            break
     return flags, pos
 
 class FutureFlags(object):


More information about the Pypy-commit mailing list