aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-02 23:31:26 +0000
committerBenjamin Peterson <benjamin@python.org>2009-03-02 23:31:26 +0000
commitf5b52246ed8a1191c3aa1da7d3c63bbe11aee020 (patch)
treedcac9a1daca7f583ff958cb61f73e9ed11b5564b /Include/parsetok.h
parentLet configparser use ordered dicts by default. (diff)
downloadcpython-f5b52246ed8a1191c3aa1da7d3c63bbe11aee020.tar.gz
cpython-f5b52246ed8a1191c3aa1da7d3c63bbe11aee020.tar.bz2
cpython-f5b52246ed8a1191c3aa1da7d3c63bbe11aee020.zip
ignore the coding cookie in compile(), exec(), and eval() if the source is a string #4626
Diffstat (limited to 'Include/parsetok.h')
-rw-r--r--Include/parsetok.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/parsetok.h b/Include/parsetok.h
index 81f17719b15..fa402f862a0 100644
--- a/Include/parsetok.h
+++ b/Include/parsetok.h
@@ -29,6 +29,8 @@ typedef struct {
#define PyPARSE_UNICODE_LITERALS 0x0008
#endif
+#define PyPARSE_IGNORE_COOKIE 0x0010
+
PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int,
perrdetail *);
PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int,