summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-07-20 22:39:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-07-20 22:39:34 (GMT)
commit20f9c3c50f5e642295040c05e574ff9dc84bf207 (patch)
treea0bb84cba5bcdcb1fb7b059930076f52d3d3225c /Python/compile.c
parent013783c529cfc459d05d261f5053ad7bf7d88c29 (diff)
downloadcpython-20f9c3c50f5e642295040c05e574ff9dc84bf207.zip
cpython-20f9c3c50f5e642295040c05e574ff9dc84bf207.tar.gz
cpython-20f9c3c50f5e642295040c05e574ff9dc84bf207.tar.bz2
revert unintended changes
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 83c9e02..aae0339 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -787,7 +787,6 @@ opcode_stack_effect(int opcode, int oparg)
case LOAD_CONST:
return 1;
case LOAD_NAME:
- case LOAD_NAME_LOCAL_ONLY:
return 1;
case BUILD_TUPLE:
case BUILD_LIST:
@@ -2482,7 +2481,6 @@ compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
optype = OP_DEREF;
break;
case LOCAL:
- case LOCAL_ONLY:
if (c->u->u_ste->ste_type == FunctionBlock)
optype = OP_FAST;
break;
@@ -2558,7 +2556,7 @@ compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
break;
case OP_NAME:
switch (ctx) {
- case Load: op = (scope == LOCAL_ONLY) ? LOAD_NAME_LOCAL_ONLY : LOAD_NAME; break;
+ case Load: op = LOAD_NAME; break;
case Store: op = STORE_NAME; break;
case Del: op = DELETE_NAME; break;
case AugLoad: