Remove unnecessary call to PyErr_Clear.
This commit is contained in:
parent
8b4367ec10
commit
e575f10c51
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue