diff options
author | Eric Smith <eric@trueblade.com> | 2008-03-20 23:02:08 +0000 |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-03-20 23:02:08 +0000 |
commit | 14b3c4cf960591f38359f3f8305c06429171845c (patch) | |
tree | 3574642bac9fed9638e095cbe78dc7b56de32b69 /Python/future.c | |
parent | 49d3b27c0ff97cb9374e564b5a65ce4876d2a7b9 (diff) | |
download | cpython-14b3c4cf960591f38359f3f8305c06429171845c.tar.gz |
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 80a3006a3d..d6333ff63e 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"); |