Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 48477:e26c724d5e23
Make these files to compile again under Windows.
| author | Thomas Heller <theller@ctypes.org> |
|---|---|
| date | Tue, 15 Jul 2008 17:14:51 +0000 |
| parents | 3d868254ff7e |
| children | de0bf60f1245 |
line wrap: on
line diff
--- a/Python/sysmodule.c Tue Jul 15 17:14:09 2008 +0000 +++ b/Python/sysmodule.c Tue Jul 15 17:14:51 2008 +0000 @@ -616,6 +616,7 @@ 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)) @@ -639,7 +640,7 @@ 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__",
