summaryrefslogtreecommitdiffstats
path: root/Modules/threadmodule.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-20 14:55:01 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-20 14:55:01 (GMT)
commit4ee631e756fa55b3e766b7580e30c2492aae802a (patch)
tree92772d2680693de2b3854000068d3a6c6cf0e905 /Modules/threadmodule.c
parent11b41f6932bae5c3fecb436a564e2894aaf66f0d (diff)
downloadcpython-4ee631e756fa55b3e766b7580e30c2492aae802a.zip
cpython-4ee631e756fa55b3e766b7580e30c2492aae802a.tar.gz
cpython-4ee631e756fa55b3e766b7580e30c2492aae802a.tar.bz2
Make "thread.local" key a unicode object.
Diffstat (limited to 'Modules/threadmodule.c')
-rw-r--r--Modules/threadmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c
index baf6673..61ad5d3 100644
--- a/Modules/threadmodule.c
+++ b/Modules/threadmodule.c
@@ -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;