mirror of
https://github.com/python/cpython.git
synced 2026-01-08 00:12:42 +00:00
Add returns_unicode to the __members__ list.
Fix a small style consistency nit.
This commit is contained in:
parent
95b4ec5fbe
commit
e8f3ad560f
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue