Make "thread.local" key a unicode object.

This commit is contained in:
Walter Dörwald 2007-06-20 14:55:01 +00:00
parent 11b41f6932
commit 4ee631e756
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw)
Py_XINCREF(kw);
self->kw = kw;
self->dict = NULL; /* making sure */
self->key = PyString_FromFormat("thread.local.%p", self);
self->key = PyUnicode_FromFormat("thread.local.%p", self);
if (self->key == NULL)
goto err;