[Python-checkins] cpython (3.2): Remove unnecessary call to PyErr_Clear.
ezio.melotti
python-checkins at python.org
Mon Apr 11 02:51:35 CEST 2011
http://hg.python.org/cpython/rev/6b4467e71872
changeset: 69245:6b4467e71872
branch: 3.2
parent: 69240:36648097fcd4
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Mon Apr 11 03:48:57 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
@@ -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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list