From e575f10c51d0fcfa0bdf8512575b95af990b55b2 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 11 Apr 2011 03:45:25 +0300 Subject: Remove unnecessary call to PyErr_Clear. --- Modules/pyexpat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index af85582..3bd68a9 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; -- cgit v0.12