summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-03 19:12:58 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-03 19:12:58 (GMT)
commiteaed39f303be60dfde45179f21302a7d3789c755 (patch)
tree4cc02f1fcfe6c6de10d2a6267b699bd2bad418c2 /Lib
parentfa0cf4f3ae1c4eac0a6d45af89fcbcecc62f910c (diff)
downloadcpython-eaed39f303be60dfde45179f21302a7d3789c755.zip
cpython-eaed39f303be60dfde45179f21302a7d3789c755.tar.gz
cpython-eaed39f303be60dfde45179f21302a7d3789c755.tar.bz2
Hopefully this removes all vestiges of CO_GENERATOR_ALLOWED that can
be removed in 2.x.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/compiler/consts.py2
-rw-r--r--Lib/compiler/pycodegen.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py
index d760982..c79e814 100644
--- a/Lib/compiler/consts.py
+++ b/Lib/compiler/consts.py
@@ -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
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 9959b13..5fcdbb9 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -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":