Skip to content

Commit 1fffc9a

Browse files
author
benjamin.peterson
committed
more flags which only work for function blocks
git-svn-id: http://svn.python.org/projects/python/trunk@69158 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a72f025 commit 1fffc9a

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Python/compile.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,13 +3794,11 @@ compute_code_flags(struct compiler *c)
37943794
flags |= CO_NESTED;
37953795
if (ste->ste_generator)
37963796
flags |= CO_GENERATOR;
3797+
if (ste->ste_varargs)
3798+
flags |= CO_VARARGS;
3799+
if (ste->ste_varkeywords)
3800+
flags |= CO_VARKEYWORDS;
37973801
}
3798-
if (ste->ste_varargs)
3799-
flags |= CO_VARARGS;
3800-
if (ste->ste_varkeywords)
3801-
flags |= CO_VARKEYWORDS;
3802-
if (ste->ste_generator)
3803-
flags |= CO_GENERATOR;
38043802

38053803
/* (Only) inherit compilerflags in PyCF_MASK */
38063804
flags |= (c->c_flags->cf_flags & PyCF_MASK);

0 commit comments

Comments
 (0)