diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 14:55:01 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 14:55:01 (GMT) |
commit | 4ee631e756fa55b3e766b7580e30c2492aae802a (patch) | |
tree | 92772d2680693de2b3854000068d3a6c6cf0e905 /Modules | |
parent | 11b41f6932bae5c3fecb436a564e2894aaf66f0d (diff) | |
download | cpython-4ee631e756fa55b3e766b7580e30c2492aae802a.zip cpython-4ee631e756fa55b3e766b7580e30c2492aae802a.tar.gz cpython-4ee631e756fa55b3e766b7580e30c2492aae802a.tar.bz2 |
Make "thread.local" key a unicode object.
Diffstat (limited to 'Modules')
-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 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; |