summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-31 23:54:38 +0000
committerBenjamin Peterson <benjamin@python.org>2009-01-31 23:54:38 +0000
commit12554cb2243a30e2daac1bf83c9cc63d2f6fe490 (patch)
treea2e702079829575634f3711ca8bacb2fc581c9b4 /Python/compile.c
parentda9327faf743dbe4810fe10cddf3597c67d8017b (diff)
downloadcpython-git-12554cb2243a30e2daac1bf83c9cc63d2f6fe490.tar.gz
more flags which only work for function blocks
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 917f9d3b12..a252bd15f1 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3794,13 +3794,11 @@ compute_code_flags(struct compiler *c)
flags |= CO_NESTED;
if (ste->ste_generator)
flags |= CO_GENERATOR;
+ if (ste->ste_varargs)
+ flags |= CO_VARARGS;
+ if (ste->ste_varkeywords)
+ flags |= CO_VARKEYWORDS;
}
- if (ste->ste_varargs)
- flags |= CO_VARARGS;
- if (ste->ste_varkeywords)
- flags |= CO_VARKEYWORDS;
- if (ste->ste_generator)
- flags |= CO_GENERATOR;
/* (Only) inherit compilerflags in PyCF_MASK */
flags |= (c->c_flags->cf_flags & PyCF_MASK);