From ab51f5f24d6f6edef5e8fac5e31b2e4ac0cbdbac Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sat, 25 Feb 2006 15:43:10 +0000 Subject: [PATCH] Per discussion on python-dev, remove CO_GENERATOR_ALLOWED. Leave comment about not removing yet. --- Include/code.h | 5 ++++- Include/pythonrun.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Include/code.h b/Include/code.h index 1c8fbb36bd3..7dd13fe5dae 100644 --- a/Include/code.h +++ b/Include/code.h @@ -40,7 +40,10 @@ typedef struct { */ #define CO_NOFREE 0x0040 -#define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */ +#if 0 +/* This is no longer used. Stopped defining in 2.5, do not re-use. */ +#define CO_GENERATOR_ALLOWED 0x1000 +#endif #define CO_FUTURE_DIVISION 0x2000 #define CO_MAXBLOCKS 20 /* Max static block nesting within a function */ diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 5c78cce6051..446133a16ca 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -8,7 +8,7 @@ extern "C" { #endif #define PyCF_MASK (CO_FUTURE_DIVISION) -#define PyCF_MASK_OBSOLETE (CO_GENERATOR_ALLOWED | CO_NESTED) +#define PyCF_MASK_OBSOLETE (CO_NESTED) #define PyCF_SOURCE_IS_UTF8 0x0100 #define PyCF_DONT_IMPLY_DEDENT 0x0200