mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Remove unnecessary call to PyErr_Clear.
This commit is contained in:
parent
47e120e70c
commit
fdb2df49bd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user