Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 62389:907f564476be
Issue #6543: Write the traceback in the terminal encoding instead of utf-8.
Fix the encoding of the modules filename.
Reindent also traceback.h, just because I hate tabs :-)
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 17 Jun 2010 23:08:50 +0000 |
| parents | cab14be0ada1 |
| children | eb95af0a99cb |
line wrap: on
line diff
--- a/Python/compile.c Thu Jun 17 21:43:33 2010 +0000 +++ b/Python/compile.c Thu Jun 17 23:08:50 2010 +0000 @@ -3942,7 +3942,7 @@ freevars = dict_keys_inorder(c->u->u_freevars, PyTuple_Size(cellvars)); if (!freevars) goto error; - filename = PyUnicode_DecodeFSDefault(c->c_filename); + filename = PyUnicode_FromString(c->c_filename); if (!filename) goto error;
