mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Improve exception text. Closes issue 13811.
This commit is contained in:
		
							parent
							
								
									cff9237d57
								
							
						
					
					
						commit
						d25cfe66f5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -241,8 +241,8 @@ parse_internal_render_format_spec(PyObject *format_spec, | ||||||
|     /* Finally, parse the type field. */ |     /* Finally, parse the type field. */ | ||||||
| 
 | 
 | ||||||
|     if (end-pos > 1) { |     if (end-pos > 1) { | ||||||
|         /* More than one char remain, invalid conversion spec. */ |         /* More than one char remain, invalid format specifier. */ | ||||||
|         PyErr_Format(PyExc_ValueError, "Invalid conversion specification"); |         PyErr_Format(PyExc_ValueError, "Invalid format specifier"); | ||||||
|         return 0; |         return 0; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Eric V. Smith
						Eric V. Smith