/* Don't do anything else */
}
else {
- assert(PyExceptionClass_Check(type));
PyObject* moduleName;
- char* className = PyExceptionClass_Name(type);
+ char* className;
+ assert(PyExceptionClass_Check(type));
+ className = PyExceptionClass_Name(type);
if (className != NULL) {
char *dot = strrchr(className, '.');
if (dot != NULL)
static PyObject *str__sizeof__, *gc_head_size = NULL;
static char *kwlist[] = {"object", "default", 0};
PyObject *o, *dflt = NULL;
+ PyObject *method;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|O:getsizeof",
kwlist, &o, &dflt))
if (PyType_Ready(Py_TYPE(o)) < 0)
return NULL;
- PyObject *method = _PyType_Lookup(Py_TYPE(o), str__sizeof__);
+ method = _PyType_Lookup(Py_TYPE(o), str__sizeof__);
if (method == NULL)
PyErr_Format(PyExc_TypeError,
"Type %.100s doesn't define __sizeof__",