diff options
Diffstat (limited to 'Modules/threadmodule.c')
| -rw-r--r-- | Modules/threadmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 7b52f72..81bf288 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -190,7 +190,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw) Py_XINCREF(kw); self->kw = kw; self->dict = NULL; /* making sure */ - self->key = PyBytes_FromFormat("thread.local.%p", self); + self->key = PyString_FromFormat("thread.local.%p", self); if (self->key == NULL) goto err; |
