mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +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. */
 | 
			
		||||
 | 
			
		||||
    if (end-pos > 1) {
 | 
			
		||||
        /* More than one char remain, invalid conversion spec. */
 | 
			
		||||
        PyErr_Format(PyExc_ValueError, "Invalid conversion specification");
 | 
			
		||||
        /* More than one char remain, invalid format specifier. */
 | 
			
		||||
        PyErr_Format(PyExc_ValueError, "Invalid format specifier");
 | 
			
		||||
        return 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue