diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-09 11:44:30 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-09 11:44:30 -0400 |
commit | 583e11978ccf946c33d9a940ad1c824fafdd4f79 (patch) | |
tree | 75388aa1b871c9c2e734734baeab02c04d920340 /Python/future.c | |
parent | cd9193e561e7a6b99cde783822cb5ca082776632 (diff) | |
download | cpython-583e11978ccf946c33d9a940ad1c824fafdd4f79.tar.gz |
PEP 479: Change StopIteration handling inside generators.
Closes issue #22906.
Diffstat (limited to 'Python/future.c')
-rw-r--r-- | Python/future.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |