summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-08-28 22:01:45 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-08-28 22:01:45 (GMT)
commit59043f96eaf5797c0a1f9058b802fcfea5d044fa (patch)
tree170cf6031e722c2a8a0601aa33a12e7c43753b9c /Objects
parent5b9eccb383c21fda80f3e3b5b9d6bb803b7b70bf (diff)
parent28a6cfaefc41a4e4bfa6dd0b54318c0465987652 (diff)
downloadcpython-59043f96eaf5797c0a1f9058b802fcfea5d044fa.zip
cpython-59043f96eaf5797c0a1f9058b802fcfea5d044fa.tar.gz
cpython-59043f96eaf5797c0a1f9058b802fcfea5d044fa.tar.bz2
merge 3.2 (#15801)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 773a9be..af4a13a 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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) {