mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
merge 3.2 (#15801)
This commit is contained in:
commit
59043f96ea
3 changed files with 7 additions and 2 deletions
|
@ -13461,8 +13461,7 @@ PyUnicode_Format(PyObject *format, PyObject *args)
|
|||
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