Commits

Anonymous committed 5b6a9ca

Minor cleanups

  • Participants
  • Parent commits 1521b22

Comments (0)

Files changed (2)

File src/_numericsurfarray.c

 PYGAME_EXPORT
 void init_numericsurfarray (void)
 {
-    PyObject *module, *dict;
+    PyObject *module;
     
     /* create the module */
     module = Py_InitModule3 ("_numericsurfarray", surfarray_builtins,
                              DOC_PYGAMESURFARRAY);
-    dict = PyModule_GetDict (module);
     
     /*imported needed apis*/
     import_pygame_base ();

File src/pixelarray.c

     0,                          /* tp_hash */
     0,                          /* tp_call */
     0,                          /* tp_str */
-    0,                          /* tp_getattro */
+    PyObject_GenericGetAttr,    /* tp_getattro */
     0,                          /* tp_setattro */
     0,                          /* tp_as_buffer */
     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HAVE_WEAKREFS,
     
     /* create the module */
     module = Py_InitModule3 ("pixelarray", NULL, NULL);
-    PyPixelArray_Type.tp_getattro = PyObject_GenericGetAttr;
     Py_INCREF (&PyPixelArray_Type);
     PyModule_AddObject (module, "PixelArray", (PyObject *) &PyPixelArray_Type);