mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Implement PEP 3120.
This commit is contained in:
parent
5de17db361
commit
447d33ead6
5 changed files with 69 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue