Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 36726:bbf16fd024df legacy-trunk
from __future__ import with_statement addon for 'with', mostly written by
Neal.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Tue, 28 Feb 2006 19:02:24 +0000 |
| parents | 5c36c222e7ca |
| children | d6cbc71b8010 |
line wrap: on
line diff
--- a/Python/compile.c Tue Feb 28 19:02:05 2006 +0000 +++ b/Python/compile.c Tue Feb 28 19:02:24 2006 +0000 @@ -4286,6 +4286,8 @@ flags |= CO_GENERATOR; if (c->c_flags->cf_flags & CO_FUTURE_DIVISION) flags |= CO_FUTURE_DIVISION; + if (c->c_flags->cf_flags & CO_FUTURE_WITH_STATEMENT) + flags |= CO_FUTURE_WITH_STATEMENT; n = PyDict_Size(c->u->u_freevars); if (n < 0) return -1;
