summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c4
-rw-r--r--Objects/unicodeobject.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 78560de9d6..037fa6a239 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1620,10 +1620,6 @@ string_join(PyStringObject *self, PyObject *orig)
seq = PySequence_Fast(orig, "");
if (seq == NULL) {
- if (PyErr_ExceptionMatches(PyExc_TypeError))
- PyErr_Format(PyExc_TypeError,
- "sequence expected, %.80s found",
- orig->ob_type->tp_name);
return NULL;
}
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 10ac80c9a2..db2a6900cb 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4148,10 +4148,6 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
fseq = PySequence_Fast(seq, "");
if (fseq == NULL) {
- if (PyErr_ExceptionMatches(PyExc_TypeError))
- PyErr_Format(PyExc_TypeError,
- "sequence expected, %.80s found",
- seq->ob_type->tp_name);
return NULL;
}