summaryrefslogtreecommitdiffstats
path: root/Include/code.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-03-26 22:01:37 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-03-26 22:01:37 (GMT)
commit3c60833e1e53f6239825b44f76fa22172feb1790 (patch)
treea8ebf8db7f226aaaa1a144e1b6361281374a169a /Include/code.h
parent0cb3e86c472828720bb36a8335f10b81389fb668 (diff)
downloadcpython-3c60833e1e53f6239825b44f76fa22172feb1790.zip
cpython-3c60833e1e53f6239825b44f76fa22172feb1790.tar.gz
cpython-3c60833e1e53f6239825b44f76fa22172feb1790.tar.bz2
Patch #2477: Added from __future__ import unicode_literals
The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
Diffstat (limited to 'Include/code.h')
-rw-r--r--Include/code.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/code.h b/Include/code.h
index 0e89b88..8c00700 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -49,6 +49,7 @@ typedef struct {
#define CO_FUTURE_ABSOLUTE_IMPORT 0x4000 /* do absolute imports by default */
#define CO_FUTURE_WITH_STATEMENT 0x8000
#define CO_FUTURE_PRINT_FUNCTION 0x10000
+#define CO_FUTURE_UNICODE_LITERALS 0x20000
/* This should be defined if a future statement modifies the syntax.
For example, when a keyword is added.