Mercurial > cpython-lru_cache-weakref
diff Modules/_sqlite/cache.c @ 44351:86a2679dca46
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 19 Dec 2007 02:45:37 +0000 |
| parents | 0d462d789b18 |
| children | e06e08e8fdce |
line wrap: on
line diff
--- a/Modules/_sqlite/cache.c Wed Dec 19 02:07:34 2007 +0000 +++ b/Modules/_sqlite/cache.c Wed Dec 19 02:45:37 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)
