From: Ezio Melotti Date: Mon, 11 Apr 2011 00:48:57 +0000 (+0300) Subject: Remove unnecessary call to PyErr_Clear. X-Git-Tag: v3.2.1b1~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdb2df49bd9739dfbec7d6fda7870e31d0c46f91;p=thirdparty%2FPython%2Fcpython.git Remove unnecessary call to PyErr_Clear. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index ee59baf83f9e..40d93246fc17 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -846,7 +846,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;