commit | fdb2df49bd9739dfbec7d6fda7870e31d0c46f91 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Mon Apr 11 03:48:57 2011 +0300 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Mon Apr 11 03:48:57 2011 +0300 |
tree | a865b5a5122672cd866b9bf6d82bb7d15b692a7e | |
parent | 47e120e70cc3d4e70dcdc82df09d923d453c5d6d [diff] |
Remove unnecessary call to PyErr_Clear.
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 @@ readmethod = PyObject_GetAttrString(f, "read"); if (readmethod == NULL) { - PyErr_Clear(); PyErr_SetString(PyExc_TypeError, "argument must have 'read' attribute"); return NULL;