mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #19569: Compiler warnings are now emitted if use most of deprecated
functions.
This commit is contained in:
		
							parent
							
								
									6107f46bfb
								
							
						
					
					
						commit
						460bd0d284
					
				
					 18 changed files with 143 additions and 142 deletions
				
			
		|  | @ -236,7 +236,7 @@ BB_setitem(arrayobject *ap, Py_ssize_t i, PyObject *v) | |||
| static PyObject * | ||||
| u_getitem(arrayobject *ap, Py_ssize_t i) | ||||
| { | ||||
|     return PyUnicode_FromUnicode(&((Py_UNICODE *) ap->ob_item)[i], 1); | ||||
|     return PyUnicode_FromOrdinal(((Py_UNICODE *) ap->ob_item)[i]); | ||||
| } | ||||
| 
 | ||||
| static int | ||||
|  | @ -1693,7 +1693,7 @@ array_array_tounicode_impl(arrayobject *self) | |||
|              "tounicode() may only be called on unicode type arrays"); | ||||
|         return NULL; | ||||
|     } | ||||
|     return PyUnicode_FromUnicode((Py_UNICODE *) self->ob_item, Py_SIZE(self)); | ||||
|     return PyUnicode_FromWideChar((Py_UNICODE *) self->ob_item, Py_SIZE(self)); | ||||
| } | ||||
| 
 | ||||
| /*[clinic input]
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka