Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 43225:38f3f9ef193d
Convert code from sys.stdin.encoding to UTF-8 in
interactive mode. Fixes #1100.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 04 Sep 2007 09:18:06 +0000 |
| parents | a89d469e1ff7 |
| children | 19319e70fc3e |
line wrap: on
line diff
--- a/Python/import.c Tue Sep 04 09:03:59 2007 +0000 +++ b/Python/import.c Tue Sep 04 09:18:06 2007 +0000 @@ -809,7 +809,8 @@ if (arena == NULL) return NULL; - mod = PyParser_ASTFromFile(fp, pathname, Py_file_input, 0, 0, 0, + mod = PyParser_ASTFromFile(fp, pathname, NULL, + Py_file_input, 0, 0, 0, NULL, arena); if (mod) { co = PyAST_Compile(mod, pathname, NULL, arena);
