Merge with 3.2.
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 9b78d7e..4ef09de 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -847,7 +847,6 @@
 
     readmethod = PyObject_GetAttrString(f, "read");
     if (readmethod == NULL) {
-        PyErr_Clear();
         PyErr_SetString(PyExc_TypeError,
                         "argument must have 'read' attribute");
         return NULL;