mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Remove unnecessary call to PyErr_Clear.
This commit is contained in:
parent
47e120e70c
commit
fdb2df49bd
1 changed files with 0 additions and 1 deletions
|
@ -846,7 +846,6 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *f)
|
||||||
|
|
||||||
readmethod = PyObject_GetAttrString(f, "read");
|
readmethod = PyObject_GetAttrString(f, "read");
|
||||||
if (readmethod == NULL) {
|
if (readmethod == NULL) {
|
||||||
PyErr_Clear();
|
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
"argument must have 'read' attribute");
|
"argument must have 'read' attribute");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue