]> granicus.if.org Git - python/commitdiff
a little more fiddling to make flags like 2.x
authorBenjamin Peterson <benjamin@python.org>
Thu, 2 Jul 2009 21:54:36 +0000 (21:54 +0000)
committerBenjamin Peterson <benjamin@python.org>
Thu, 2 Jul 2009 21:54:36 +0000 (21:54 +0000)
Include/code.h
Include/pythonrun.h

index 3ab5bc7eb4df8f4c0a8f4e5ddc84a930e67c72b1..efaf3c415b72fdf65aee04319c60c00ae139df6e 100644 (file)
@@ -43,7 +43,9 @@ typedef struct {
 #define CO_NOFREE       0x0040
 
 /* These are no longer used. */
+#if 0
 #define CO_GENERATOR_ALLOWED    0x1000
+#endif
 #define CO_FUTURE_DIVISION     0x2000
 #define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
 #define CO_FUTURE_WITH_STATEMENT  0x8000
index 28e169060cafe5ef7b2b5eec04afa4cde14472f7..09d3ee55302592f1ffebc52ea3d2f83ccec603e3 100644 (file)
@@ -10,7 +10,7 @@ extern "C" {
 #define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
                    CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
                    CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL)
-#define PyCF_MASK_OBSOLETE 0
+#define PyCF_MASK_OBSOLETE (CO_NESTED)
 #define PyCF_SOURCE_IS_UTF8  0x0100
 #define PyCF_DONT_IMPLY_DEDENT 0x0200
 #define PyCF_ONLY_AST 0x0400