mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Make "thread.local" key a unicode object.
This commit is contained in:
		
							parent
							
								
									11b41f6932
								
							
						
					
					
						commit
						4ee631e756
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald