[Jython-checkins] jython: Add new flags to CompilerFlags.
frank.wierzbicki
jython-checkins at python.org
Fri Mar 23 19:55:02 CET 2012
http://hg.python.org/jython/rev/4573198a42c6
changeset: 6494:4573198a42c6
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Fri Mar 23 11:54:53 2012 -0700
summary:
Add new flags to CompilerFlags.
files:
src/org/python/core/CompilerFlags.java | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/org/python/core/CompilerFlags.java b/src/org/python/core/CompilerFlags.java
--- a/src/org/python/core/CompilerFlags.java
+++ b/src/org/python/core/CompilerFlags.java
@@ -67,8 +67,12 @@
isFlagSet(CodeFlag.CO_NESTED),
isFlagSet(CodeFlag.CO_GENERATOR_ALLOWED),
isFlagSet(CodeFlag.CO_FUTURE_WITH_STATEMENT),
- isFlagSet(CodeFlag.CO_FUTURE_ABSOLUTE_IMPORT), only_ast,
- dont_imply_dedent, source_is_utf8);
+ isFlagSet(CodeFlag.CO_FUTURE_ABSOLUTE_IMPORT),
+ isFlagSet(CodeFlag.CO_FUTURE_PRINT_FUNCTION),
+ isFlagSet(CodeFlag.CO_FUTURE_UNICODE_LITERALS),
+ only_ast,
+ dont_imply_dedent,
+ source_is_utf8);
}
public static CompilerFlags getCompilerFlags() {
@@ -82,7 +86,9 @@
| CodeFlag.CO_GENERATOR_ALLOWED.flag
| CodeFlag.CO_FUTURE_DIVISION.flag
| CodeFlag.CO_FUTURE_ABSOLUTE_IMPORT.flag
- | CodeFlag.CO_FUTURE_WITH_STATEMENT.flag;
+ | CodeFlag.CO_FUTURE_WITH_STATEMENT.flag
+ | CodeFlag.CO_FUTURE_PRINT_FUNCTION.flag
+ | CodeFlag.CO_FUTURE_UNICODE_LITERALS.flag;
public static CompilerFlags getCompilerFlags(int flags, PyFrame frame) {
if ((flags & ~CO_ALL_FEATURES) != 0) {
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list