]> granicus.if.org Git - python/commitdiff
Make "thread.local" key a unicode object.
authorWalter Dörwald <walter@livinglogic.de>
Wed, 20 Jun 2007 14:55:01 +0000 (14:55 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Wed, 20 Jun 2007 14:55:01 +0000 (14:55 +0000)
Modules/threadmodule.c

index baf6673af149592a888cf90ba3703c74a3be4512..61ad5d378db296e1fa38fe8c3767c63afd89d5f2 100644 (file)
@@ -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;