Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 42333:6620a510e9a9 legacy-trunk
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 21 Jul 2007 06:55:02 +0000 |
| parents | 0635a6ca1980 |
| children | ee9ebbf5f3dc |
line wrap: on
line diff
--- a/Python/import.c Thu Jul 19 23:57:38 2007 +0000 +++ b/Python/import.c Sat Jul 21 06:55:02 2007 +0000 @@ -3030,8 +3030,7 @@ static PyTypeObject NullImporterType = { - PyObject_HEAD_INIT(NULL) - 0, /*ob_size*/ + PyVarObject_HEAD_INIT(NULL, 0) "imp.NullImporter", /*tp_name*/ sizeof(NullImporter), /*tp_basicsize*/ 0, /*tp_itemsize*/
