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.
This commit is contained in:
Eric Smith 2008-03-20 23:02:08 +00:00
parent 2eb2c7c384
commit 87824086fa
5 changed files with 17 additions and 0 deletions

View file

@ -48,6 +48,7 @@ typedef struct {
#define CO_FUTURE_DIVISION 0x2000
#define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
#define CO_FUTURE_WITH_STATEMENT 0x8000
#define CO_FUTURE_PRINT_FUNCTION 0x10000
#endif
/* This should be defined if a future statement modifies the syntax.