[Python-checkins] cpython (2.7): Remove unnecessary call to PyErr_Clear.
ezio.melotti
python-checkins at python.org
Mon Apr 11 02:45:56 CEST 2011
http://hg.python.org/cpython/rev/ba699cf9bdbb
changeset: 69244:ba699cf9bdbb
branch: 2.7
user: Ezio Melotti
date: Mon Apr 11 03:45:25 2011 +0300
summary:
Remove unnecessary call to PyErr_Clear.
files:
Modules/pyexpat.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -966,7 +966,6 @@
readmethod = PyObject_GetAttrString(f, "read");
if (readmethod == NULL) {
- PyErr_Clear();
PyErr_SetString(PyExc_TypeError,
"argument must have 'read' attribute");
return NULL;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list