From: Walter Dörwald Date: Wed, 20 Jun 2007 14:55:01 +0000 (+0000) Subject: Make "thread.local" key a unicode object. X-Git-Tag: v3.0a1~746 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ee631e756fa55b3e766b7580e30c2492aae802a;p=thirdparty%2FPython%2Fcpython.git Make "thread.local" key a unicode object. --- diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index baf6673af149..61ad5d378db2 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;