Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 42054:063530fcc32e
Minimal changes to make the "freeze" tool work again.
There are other issues left, but these were basics (e.g. keys().sort()).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 12 Jun 2007 00:28:30 +0000 |
| parents | cd125fe83051 |
| children | 229c28cb9afb |
line wrap: on
line diff
--- a/Python/ast.c Tue Jun 12 00:25:52 2007 +0000 +++ b/Python/ast.c Tue Jun 12 00:28:30 2007 +0000 @@ -193,8 +193,11 @@ if (flags && flags->cf_flags & PyCF_SOURCE_IS_UTF8) { c.c_encoding = "utf-8"; if (TYPE(n) == encoding_decl) { +#if 0 ast_error(n, "encoding declaration in Unicode string"); goto error; +#endif + n = CHILD(n, 0); } } else if (TYPE(n) == encoding_decl) { c.c_encoding = STR(n);
