Remove unnecessary casts in type object initializers.

This commit is contained in:
Georg Brandl 2006-03-30 11:57:00 +00:00
parent 3987df5adf
commit 347b30042b
20 changed files with 272 additions and 271 deletions

View file

@ -3460,18 +3460,18 @@ PyTypeObject PyString_Type = {
"str",
sizeof(PyStringObject),
sizeof(char),
(destructor)string_dealloc, /* tp_dealloc */
string_dealloc, /* tp_dealloc */
(printfunc)string_print, /* tp_print */
0, /* tp_getattr */
0, /* tp_setattr */
0, /* tp_compare */
(reprfunc)string_repr, /* tp_repr */
string_repr, /* tp_repr */
&string_as_number, /* tp_as_number */
&string_as_sequence, /* tp_as_sequence */
&string_as_mapping, /* tp_as_mapping */
(hashfunc)string_hash, /* tp_hash */
0, /* tp_call */
(reprfunc)string_str, /* tp_str */
string_str, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
&string_as_buffer, /* tp_as_buffer */