From: Ezio Melotti Date: Mon, 11 Apr 2011 00:45:25 +0000 (+0300) Subject: Remove unnecessary call to PyErr_Clear. X-Git-Tag: v2.7.2rc1~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e575f10c51d0fcfa0bdf8512575b95af990b55b2;p=python Remove unnecessary call to PyErr_Clear. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index af85582ab8..3bd68a9441 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -966,7 +966,6 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *f) readmethod = PyObject_GetAttrString(f, "read"); if (readmethod == NULL) { - PyErr_Clear(); PyErr_SetString(PyExc_TypeError, "argument must have 'read' attribute"); return NULL;