From 4ee631e756fa55b3e766b7580e30c2492aae802a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Wed, 20 Jun 2007 14:55:01 +0000 Subject: [PATCH] Make "thread.local" key a unicode object. --- Modules/threadmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index baf6673af14..61ad5d378db 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;