diff Python/future.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 cea54c9d921d 49c6eb688906
line wrap: on
line diff
--- a/Python/future.c	Tue Feb 28 19:02:05 2006 +0000
+++ b/Python/future.c	Tue Feb 28 19:02:24 2006 +0000
@@ -31,6 +31,8 @@
 			ff->ff_features |= CO_FUTURE_DIVISION;
 		} else if (strcmp(feature, FUTURE_ABSIMPORT) == 0) {
 			ff->ff_features |= CO_FUTURE_ABSIMPORT;
+		} else if (strcmp(feature, FUTURE_WITH_STATEMENT) == 0) {
+			ff->ff_features |= CO_FUTURE_WITH_STATEMENT;
 		} else if (strcmp(feature, "braces") == 0) {
 			PyErr_SetString(PyExc_SyntaxError,
 					"not a chance");