mirror of https://github.com/python/cpython
Make "thread.local" key a unicode object.
This commit is contained in:
parent
11b41f6932
commit
4ee631e756
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue