Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 42122:6710f453cf4a
Make "thread.local" key a unicode object.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Wed, 20 Jun 2007 14:55:01 +0000 |
| parents | cc992d75d5b3 |
| children | e70cdce0e8b2 |
line wrap: on
line diff
--- a/Modules/threadmodule.c Wed Jun 20 12:46:31 2007 +0000 +++ b/Modules/threadmodule.c Wed Jun 20 14:55:01 2007 +0000 @@ -191,7 +191,7 @@ 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;
