From 583e11978ccf946c33d9a940ad1c824fafdd4f79 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sat, 9 May 2015 11:44:30 -0400 Subject: PEP 479: Change StopIteration handling inside generators. Closes issue #22906. --- Python/future.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/future.c') diff --git a/Python/future.c b/Python/future.c index 81eab54dd6..163f87f673 100644 --- a/Python/future.c +++ b/Python/future.c @@ -40,6 +40,8 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, PyObject *filename) continue; } else if (strcmp(feature, FUTURE_BARRY_AS_BDFL) == 0) { ff->ff_features |= CO_FUTURE_BARRY_AS_BDFL; + } else if (strcmp(feature, FUTURE_GENERATOR_STOP) == 0) { + ff->ff_features |= CO_FUTURE_GENERATOR_STOP; } else if (strcmp(feature, "braces") == 0) { PyErr_SetString(PyExc_SyntaxError, "not a chance"); -- cgit v1.2.1