Commit 4ee631e7 authored by Walter Dörwald's avatar Walter Dörwald

Make "thread.local" key a unicode object.

parent 11b41f69
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment