summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-10-16 22:41:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-10-16 22:41:46 (GMT)
commit8d761ff045ab3aa6787d1ee8dc2ee4b39b424a64 (patch)
tree1bf2712ce6fe9b24ac432b183722ce09a44d5ae5 /Objects
parent90e028970a3217bfbd92c3db8591ce2b0c307c14 (diff)
downloadcpython-8d761ff045ab3aa6787d1ee8dc2ee4b39b424a64.zip
cpython-8d761ff045ab3aa6787d1ee8dc2ee4b39b424a64.tar.gz
cpython-8d761ff045ab3aa6787d1ee8dc2ee4b39b424a64.tar.bz2
remove extra PyErr_Format arguments (closes #28454)
Patch from Xiang Zhang.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index b734eec..19549cd 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -3009,7 +3009,7 @@ PyUnicode_Decode(const char *s,
"'%.400s' decoder returned '%.400s' instead of 'str'; "
"use codecs.decode() to decode to arbitrary types",
encoding,
- Py_TYPE(unicode)->tp_name, Py_TYPE(unicode)->tp_name);
+ Py_TYPE(unicode)->tp_name);
Py_DECREF(unicode);
goto onError;
}
@@ -3070,7 +3070,7 @@ PyUnicode_AsDecodedUnicode(PyObject *unicode,
"'%.400s' decoder returned '%.400s' instead of 'str'; "
"use codecs.decode() to decode to arbitrary types",
encoding,
- Py_TYPE(unicode)->tp_name, Py_TYPE(unicode)->tp_name);
+ Py_TYPE(unicode)->tp_name);
Py_DECREF(v);
goto onError;
}
@@ -3398,7 +3398,7 @@ PyUnicode_AsEncodedString(PyObject *unicode,
"'%.400s' encoder returned '%.400s' instead of 'bytes'; "
"use codecs.encode() to encode to arbitrary types",
encoding,
- Py_TYPE(v)->tp_name, Py_TYPE(v)->tp_name);
+ Py_TYPE(v)->tp_name);
Py_DECREF(v);
return NULL;
}
@@ -3427,7 +3427,7 @@ PyUnicode_AsEncodedUnicode(PyObject *unicode,
"'%.400s' encoder returned '%.400s' instead of 'str'; "
"use codecs.encode() to encode to arbitrary types",
encoding,
- Py_TYPE(v)->tp_name, Py_TYPE(v)->tp_name);
+ Py_TYPE(v)->tp_name);
Py_DECREF(v);
goto onError;
}