summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-16 01:48:29 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-16 01:48:29 (GMT)
commite8f3ad560f5f094fbe514e5dae4977c855ee04a2 (patch)
tree45ad9a6bcaa240635376ba0de2832164db528f91
parent95b4ec5fbe039f1b6877d74fffc6564a42efe1cb (diff)
downloadcpython-e8f3ad560f5f094fbe514e5dae4977c855ee04a2.zip
cpython-e8f3ad560f5f094fbe514e5dae4977c855ee04a2.tar.gz
cpython-e8f3ad560f5f094fbe514e5dae4977c855ee04a2.tar.bz2
Add returns_unicode to the __members__ list.
Fix a small style consistency nit.
-rw-r--r--Modules/pyexpat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 35530cf..ab0b840 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -719,7 +719,7 @@ xmlparse_getattr(xmlparseobject *self, char *name)
if (strcmp(name, "__members__") == 0) {
int i;
PyObject *rc = PyList_New(0);
- for(i = 0; handler_info[i].name!=NULL; i++) {
+ for(i = 0; handler_info[i].name != NULL; i++) {
PyList_Append(rc,
PyString_FromString(handler_info[i].name));
}
@@ -727,6 +727,7 @@ xmlparse_getattr(xmlparseobject *self, char *name)
PyList_Append(rc, PyString_FromString("ErrorLineNumber"));
PyList_Append(rc, PyString_FromString("ErrorColumnNumber"));
PyList_Append(rc, PyString_FromString("ErrorByteIndex"));
+ PyList_Append(rc, PyString_FromString("returns_unicode"));
return rc;
}