SF patch http://sourceforge.net/patch/?func=detailpatch&patch_id=103453&group_id=5470 PyMember_Set of T_CHAR always raises exception. Unfortunately, this is a use of a C API function that Python itself never makes, so there's no .py test I can check in to verify this stays fixed. But the fault in the code is obvious, and Dave Cole's patch just as obviously fixes it.
This commit is contained in:
parent
40ead76ed6
commit
547397c45b
|
@ -72,6 +72,7 @@ Tom Christiansen
|
||||||
Vadim Chugunov
|
Vadim Chugunov
|
||||||
Mike Clarkson
|
Mike Clarkson
|
||||||
Steve Clift
|
Steve Clift
|
||||||
|
Dave Cole
|
||||||
Jeffery Collins
|
Jeffery Collins
|
||||||
Matt Conway
|
Matt Conway
|
||||||
Scott Cotton
|
Scott Cotton
|
||||||
|
|
|
@ -231,6 +231,7 @@ PyMember_Set(char *addr, struct memberlist *mlist, char *name, PyObject *v)
|
||||||
PyErr_BadArgument();
|
PyErr_BadArgument();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
PyErr_SetString(PyExc_SystemError,
|
PyErr_SetString(PyExc_SystemError,
|
||||||
"bad memberlist type");
|
"bad memberlist type");
|
||||||
|
|
Loading…
Reference in New Issue