From: Fred Drake Date: Sat, 16 Dec 2000 01:48:29 +0000 (+0000) Subject: Add returns_unicode to the __members__ list. X-Git-Tag: v2.1a1~545 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8f3ad560f5f094fbe514e5dae4977c855ee04a2;p=python Add returns_unicode to the __members__ list. Fix a small style consistency nit. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 35530cf870..ab0b840fd4 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; }