Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cache.c @ 44350:26384b8180c7 legacy-trunk
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 19 Dec 2007 02:37:44 +0000 |
| parents | 6620a510e9a9 |
| children | a21854e510b4 |
line wrap: on
line diff
--- a/Modules/_sqlite/cache.c Wed Dec 19 02:02:04 2007 +0000 +++ b/Modules/_sqlite/cache.c Wed Dec 19 02:37:44 2007 +0000 @@ -51,7 +51,7 @@ Py_DECREF(self->key); Py_DECREF(self->data); - Py_Type(self)->tp_free((PyObject*)self); + Py_TYPE(self)->tp_free((PyObject*)self); } int pysqlite_cache_init(pysqlite_Cache* self, PyObject* args, PyObject* kwargs) @@ -109,7 +109,7 @@ } Py_DECREF(self->mapping); - Py_Type(self)->tp_free((PyObject*)self); + Py_TYPE(self)->tp_free((PyObject*)self); } PyObject* pysqlite_cache_get(pysqlite_Cache* self, PyObject* args)
