From 87824086fa20e3f7bbb39dc8ee9d3ce70487dd98 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Thu, 20 Mar 2008 23:02:08 +0000 Subject: 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. --- 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 80a3006a3d8..d6333ff63e6 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"); -- cgit v1.2.3