Remove unnecessary call to PyErr_Clear.

This commit is contained in:
Ezio Melotti 2011-04-11 03:48:57 +03:00
parent 47e120e70c
commit fdb2df49bd

View file

@ -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;