diff options
author | Eric Smith <eric@trueblade.com> | 2008-03-20 23:02:08 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-03-20 23:02:08 (GMT) |
commit | 87824086fa20e3f7bbb39dc8ee9d3ce70487dd98 (patch) | |
tree | 6c61ebeee2100ff264c4fd81f627fb984240d76e /Python/future.c | |
parent | 2eb2c7c3848fdc16a2c6bad6660411d0cf1c5208 (diff) | |
download | cpython-87824086fa20e3f7bbb39dc8ee9d3ce70487dd98.zip cpython-87824086fa20e3f7bbb39dc8ee9d3ce70487dd98.tar.gz cpython-87824086fa20e3f7bbb39dc8ee9d3ce70487dd98.tar.bz2 |
Add __future__ import for print_function. It's a no-op in 3.0, but it needs to not be a syntax error.
Closes issue 2436.
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 80a3006..d6333ff 100644 --- a/Python/future.c +++ b/Python/future.c @@ -33,6 +33,8 @@ future_check_features(PyFutureFeatures *ff, stmt_ty s, const char *filename) continue; } else if (strcmp(feature, FUTURE_WITH_STATEMENT) == 0) { continue; + } else if (strcmp(feature, FUTURE_PRINT_FUNCTION) == 0) { + continue; } else if (strcmp(feature, "braces") == 0) { PyErr_SetString(PyExc_SyntaxError, "not a chance"); |