diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-07-29 18:10:01 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-07-29 18:10:01 (GMT) |
commit | 447d33ead62b6dcd46d475a703f59940eb85428b (patch) | |
tree | fbae188f574406c408058b2924d98e764ff062e1 /Python | |
parent | 5de17db361d4cbf194c07b8ee5e037bb3bf3ae13 (diff) | |
download | cpython-447d33ead62b6dcd46d475a703f59940eb85428b.zip cpython-447d33ead62b6dcd46d475a703f59940eb85428b.tar.gz cpython-447d33ead62b6dcd46d475a703f59940eb85428b.tar.bz2 |
Implement PEP 3120.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ast.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 146cd05..5426c02 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -203,7 +203,8 @@ PyAST_FromNode(const node *n, PyCompilerFlags *flags, const char *filename, c.c_encoding = STR(n); n = CHILD(n, 0); } else { - c.c_encoding = NULL; + /* PEP 3120 */ + c.c_encoding = "utf-8"; } c.c_arena = arena; |