Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r87859:666435caeab3
Date: 2016-10-18 15:22 +0200
http://bitbucket.org/pypy/pypy/changeset/666435caeab3/

Log:    Fix for interpreter/test/test_compiler: ignore flags that are
        specified but anyway mandatory

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
@@ -101,5 +101,8 @@
         it.skip(pygram.tokens.SEMI)    # optionally
         it.skip_newlines()
 
+    # remove the flags that were specified but are anyway mandatory
+    result &= ~future_flags.mandatory_flags
+
     position = (it.tok[2], it.tok[3])
     return result, position
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to