mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	use the stricter PyMapping_Check (closes #15801)
This commit is contained in:
		
							parent
							
								
									2412c93a60
								
							
						
					
					
						commit
						28a6cfaefc
					
				
					 3 changed files with 7 additions and 2 deletions
				
			
		|  | @ -9504,8 +9504,7 @@ PyObject *PyUnicode_Format(PyObject *format, | |||
|         arglen = -1; | ||||
|         argidx = -2; | ||||
|     } | ||||
|     if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) && | ||||
|         !PyUnicode_Check(args)) | ||||
|     if (PyMapping_Check(args) && !PyTuple_Check(args) && !PyUnicode_Check(args)) | ||||
|         dict = args; | ||||
| 
 | ||||
|     while (--fmtcnt >= 0) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson