summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-11 00:48:57 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-11 00:48:57 (GMT)
commitfdb2df49bd9739dfbec7d6fda7870e31d0c46f91 (patch)
treea865b5a5122672cd866b9bf6d82bb7d15b692a7e /Modules/pyexpat.c
parent47e120e70cc3d4e70dcdc82df09d923d453c5d6d (diff)
downloadcpython-fdb2df49bd9739dfbec7d6fda7870e31d0c46f91.zip
cpython-fdb2df49bd9739dfbec7d6fda7870e31d0c46f91.tar.gz
cpython-fdb2df49bd9739dfbec7d6fda7870e31d0c46f91.tar.bz2
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 ee59baf..40d9324 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;