mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
2eb2c7c384
commit
87824086fa
5 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue