diff Python/future.c @ 45965:91ac8049e709

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.
author Eric Smith <eric@trueblade.com>
date Thu, 20 Mar 2008 23:02:08 +0000
parents 305d7d2ce047
children 78504d604b44
line wrap: on
line diff
--- a/Python/future.c	Thu Mar 20 21:22:04 2008 +0000
+++ b/Python/future.c	Thu Mar 20 23:02:08 2008 +0000
@@ -33,6 +33,8 @@
 			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");