]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove more unneeded casts to hashfunc.
authorGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 07:35:09 +0000 (07:35 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 18 Oct 2010 07:35:09 +0000 (07:35 +0000)
Modules/_collectionsmodule.c
Modules/_pickle.c

index 1146af581e476a872c924c1cc61b6128f25836bb..2216fa64c8d514fd6ed1aa1e60ba68b3c17aaecf 100644 (file)
@@ -1016,24 +1016,24 @@ static PyTypeObject deque_type = {
     0,                                  /* tp_as_number */
     &deque_as_sequence,                 /* tp_as_sequence */
     0,                                  /* tp_as_mapping */
-    (hashfunc)PyObject_HashNotImplemented,      /* tp_hash */
+    PyObject_HashNotImplemented,        /* tp_hash */
     0,                                  /* tp_call */
     0,                                  /* tp_str */
     PyObject_GenericGetAttr,            /* tp_getattro */
     0,                                  /* tp_setattro */
     0,                                  /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_GC,
-                                    /* tp_flags */
+                                        /* tp_flags */
     deque_doc,                          /* tp_doc */
     (traverseproc)deque_traverse,       /* tp_traverse */
     (inquiry)deque_clear,               /* tp_clear */
     (richcmpfunc)deque_richcompare,     /* tp_richcompare */
-    offsetof(dequeobject, weakreflist),         /* tp_weaklistoffset*/
+    offsetof(dequeobject, weakreflist), /* tp_weaklistoffset*/
     (getiterfunc)deque_iter,            /* tp_iter */
     0,                                  /* tp_iternext */
     deque_methods,                      /* tp_methods */
     0,                                  /* tp_members */
-    deque_getset,       /* tp_getset */
+    deque_getset,                       /* tp_getset */
     0,                                  /* tp_base */
     0,                                  /* tp_dict */
     0,                                  /* tp_descr_get */
index b810301cd58465f693a215f620bb1fe1333945ec..e2d64064629a248673ffa8ef605724ef9a817214 100644 (file)
@@ -3570,7 +3570,7 @@ static PyTypeObject PicklerMemoProxyType = {
     0,                                          /* tp_as_number */
     0,                                          /* tp_as_sequence */
     0,                                          /* tp_as_mapping */
-    (hashfunc)PyObject_HashNotImplemented,      /* tp_hash */
+    PyObject_HashNotImplemented,                /* tp_hash */
     0,                                          /* tp_call */
     0,                                          /* tp_str */
     PyObject_GenericGetAttr,                    /* tp_getattro */
@@ -5708,7 +5708,7 @@ static PyTypeObject UnpicklerMemoProxyType = {
     0,                                          /* tp_as_number */
     0,                                          /* tp_as_sequence */
     0,                                          /* tp_as_mapping */
-    (hashfunc)PyObject_HashNotImplemented,      /* tp_hash */
+    PyObject_HashNotImplemented,                /* tp_hash */
     0,                                          /* tp_call */
     0,                                          /* tp_str */
     PyObject_GenericGetAttr,                    /* tp_getattro */