Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 51222:8672b0f6575d legacy-trunk
more flags which only work for function blocks
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 31 Jan 2009 23:54:38 +0000 |
| parents | bc92d83e5508 |
| children | ef8fe9088696 |
line wrap: on
line diff
--- a/Python/compile.c Sat Jan 31 23:43:25 2009 +0000 +++ b/Python/compile.c Sat Jan 31 23:54:38 2009 +0000 @@ -3794,13 +3794,11 @@ 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);
