From: Benjamin Peterson Date: Sat, 31 Jan 2009 23:54:38 +0000 (+0000) Subject: more flags which only work for function blocks X-Git-Tag: v2.7a1~2148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12554cb2243a30e2daac1bf83c9cc63d2f6fe490;p=thirdparty%2FPython%2Fcpython.git more flags which only work for function blocks --- diff --git a/Python/compile.c b/Python/compile.c index 917f9d3b12e5..a252bd15f10a 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);