summaryrefslogtreecommitdiff
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-11 03:48:57 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-11 03:48:57 +0300
commit10e41aa79a4676a7a26937dc261d8550fae0cfd9 (patch)
tree30b161497926484d97ae2b8d11cf7be7deb4323e /Modules/pyexpat.c
parentcb3dea1402bcb8346d18768044132b28aee8a549 (diff)
downloadcpython-10e41aa79a4676a7a26937dc261d8550fae0cfd9.tar.gz
Remove unnecessary call to PyErr_Clear.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index ee59baf83f..40d93246fc 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -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;