[Python-3000-checkins] r56048 - python/branches/py3k-struni/Modules/threadmodule.c

walter.doerwald python-3000-checkins at python.org
Wed Jun 20 16:55:06 CEST 2007


Author: walter.doerwald
Date: Wed Jun 20 16:55:01 2007
New Revision: 56048

Modified:
   python/branches/py3k-struni/Modules/threadmodule.c
Log:
Make "thread.local" key a unicode object.


Modified: python/branches/py3k-struni/Modules/threadmodule.c
==============================================================================
--- python/branches/py3k-struni/Modules/threadmodule.c	(original)
+++ python/branches/py3k-struni/Modules/threadmodule.c	Wed Jun 20 16:55:01 2007
@@ -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;
 


More information about the Python-3000-checkins mailing list