mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Use %zd instead of %i as format character (in call to PyErr_Format) for
Py_ssize_t argument.
This commit is contained in:
		
							parent
							
								
									0db2a989f3
								
							
						
					
					
						commit
						715a4cdea2
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -4219,7 +4219,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq) | ||||||
| 	/* Convert item to Unicode. */ | 	/* Convert item to Unicode. */ | ||||||
| 	if (! PyUnicode_Check(item) && ! PyString_Check(item)) { | 	if (! PyUnicode_Check(item) && ! PyString_Check(item)) { | ||||||
| 	    PyErr_Format(PyExc_TypeError, | 	    PyErr_Format(PyExc_TypeError, | ||||||
| 			 "sequence item %i: expected string or Unicode," | 			 "sequence item %zd: expected string or Unicode," | ||||||
| 			 " %.80s found", | 			 " %.80s found", | ||||||
| 			 i, item->ob_type->tp_name); | 			 i, item->ob_type->tp_name); | ||||||
| 	    goto onError; | 	    goto onError; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thomas Wouters
						Thomas Wouters