Skip to content

Commit ffeaa88

Browse files
committed
a little more fiddling to make flags like 2.x
1 parent 466a782 commit ffeaa88

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Include/code.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ typedef struct {
4343
#define CO_NOFREE 0x0040
4444

4545
/* These are no longer used. */
46+
#if 0
4647
#define CO_GENERATOR_ALLOWED 0x1000
48+
#endif
4749
#define CO_FUTURE_DIVISION 0x2000
4850
#define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
4951
#define CO_FUTURE_WITH_STATEMENT 0x8000

Include/pythonrun.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ extern "C" {
1010
#define PyCF_MASK (CO_FUTURE_DIVISION | CO_FUTURE_ABSOLUTE_IMPORT | \
1111
CO_FUTURE_WITH_STATEMENT | CO_FUTURE_PRINT_FUNCTION | \
1212
CO_FUTURE_UNICODE_LITERALS | CO_FUTURE_BARRY_AS_BDFL)
13-
#define PyCF_MASK_OBSOLETE 0
13+
#define PyCF_MASK_OBSOLETE (CO_NESTED)
1414
#define PyCF_SOURCE_IS_UTF8 0x0100
1515
#define PyCF_DONT_IMPLY_DEDENT 0x0200
1616
#define PyCF_ONLY_AST 0x0400

0 commit comments

Comments
 (0)