summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-11 00:51:14 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-11 00:51:14 (GMT)
commitd60b74cb6659122d072d3bdd3951f162632d51f0 (patch)
treed4e5d8ae9c24781ba6fe3365fa3c517f61902a71 /Modules/pyexpat.c
parent8362eb1657185437be422ceb897f4219e1a61cfd (diff)
parentfdb2df49bd9739dfbec7d6fda7870e31d0c46f91 (diff)
downloadcpython-d60b74cb6659122d072d3bdd3951f162632d51f0.zip
cpython-d60b74cb6659122d072d3bdd3951f162632d51f0.tar.gz
cpython-d60b74cb6659122d072d3bdd3951f162632d51f0.tar.bz2
Merge with 3.2.
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 9b78d7e..4ef09de 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -847,7 +847,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;