From b2308bb9be492937764a99007f5fd49b75fbefee Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Fri, 21 Oct 2005 11:45:01 +0000 Subject: Fix bug: [ 1327110 ] wrong TypeError traceback in generator expressions by removing the code that can stomp on the users' TypeError raised by the iterable argument to ''.join() -- PySequence_Fast (now?) gives a perfectly reasonable message itself. Also, a couple of tests. --- Objects/unicodeobject.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Objects/unicodeobject.c') 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; } -- cgit v1.2.1