summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-03-20 23:02:08 (GMT)
committerEric Smith <eric@trueblade.com>2008-03-20 23:02:08 (GMT)
commit87824086fa20e3f7bbb39dc8ee9d3ce70487dd98 (patch)
tree6c61ebeee2100ff264c4fd81f627fb984240d76e /Python
parent2eb2c7c3848fdc16a2c6bad6660411d0cf1c5208 (diff)
downloadcpython-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')
-rw-r--r--Python/future.c2
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");