]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Hopefully this removes all vestiges of CO_GENERATOR_ALLOWED that can
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 3 Mar 2006 19:12:58 +0000 (19:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 3 Mar 2006 19:12:58 +0000 (19:12 +0000)
be removed in 2.x.

Lib/compiler/consts.py
Lib/compiler/pycodegen.py

index d7609824e71a742bfe24720c8aceb0ed3c73935c..c79e814beb7defd5a74342e1b16fc3794a4c6df9 100644 (file)
@@ -15,7 +15,7 @@ CO_VARARGS = 0x0004
 CO_VARKEYWORDS = 0x0008
 CO_NESTED = 0x0010
 CO_GENERATOR = 0x0020
-CO_GENERATOR_ALLOWED = 0x1000
+CO_GENERATOR_ALLOWED = 0
 CO_FUTURE_DIVISION = 0x2000
 CO_FUTURE_ABSIMPORT = 0x4000
 CO_FUTURE_WITH_STATEMENT = 0x8000
index 9959b13411727fcb61d6f36db8cd80d2fbf7aa7f..5fcdbb92c431c66aec78d47b4e6a150cc5536011 100644 (file)
@@ -9,7 +9,7 @@ from compiler import ast, parse, walk, syntax
 from compiler import pyassem, misc, future, symbols
 from compiler.consts import SC_LOCAL, SC_GLOBAL, SC_FREE, SC_CELL
 from compiler.consts import (CO_VARARGS, CO_VARKEYWORDS, CO_NEWLOCALS,
-     CO_NESTED, CO_GENERATOR, CO_GENERATOR_ALLOWED, CO_FUTURE_DIVISION,
+     CO_NESTED, CO_GENERATOR, CO_FUTURE_DIVISION,
      CO_FUTURE_ABSIMPORT, CO_FUTURE_WITH_STATEMENT)
 from compiler.pyassem import TupleArg
 
@@ -214,8 +214,6 @@ class CodeGenerator:
             if feature == "division":
                 self.graph.setFlag(CO_FUTURE_DIVISION)
                 self._div_op = "BINARY_TRUE_DIVIDE"
-            elif feature == "generators":
-                self.graph.setFlag(CO_GENERATOR_ALLOWED)
             elif feature == "absolute_import":
                 self.graph.setFlag(CO_FUTURE_ABSIMPORT)
             elif feature == "with_statement":