Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 42089:0e010db122c7
Looks like an oopsie -- I ignored a warning at my peril.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 14 Jun 2007 00:28:01 +0000 |
| parents | 229c28cb9afb |
| children | 090588a17490 |
line wrap: on
line diff
--- a/Python/compile.c Thu Jun 14 00:04:46 2007 +0000 +++ b/Python/compile.c Thu Jun 14 00:28:01 2007 +0000 @@ -2972,7 +2972,8 @@ return PyObject_IsTrue(e->v.Str.s); case Name_kind: /* optimize away names that can't be reassigned */ - id = _PyUnicode_AsDefaultEncodedString(e->v.Name.id, NULL); + id = PyString_AS_STRING( + _PyUnicode_AsDefaultEncodedString(e->v.Name.id, NULL)); if (strcmp(id, "True") == 0) return 1; if (strcmp(id, "False") == 0) return 0; if (strcmp(id, "None") == 0) return 0;
