Author: Armin Rigo <[email protected]>
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
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit