Mercurial > hg
diff mercurial/manifest.c @ 30168:1a327889c13c
manifest: use PyVarObject_HEAD_INIT
More appeasing the Python 3 and compiler overlords. The code is
equivalent.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 13 Oct 2016 13:17:23 +0200 |
parents | 3bf4b762537e |
children |
line wrap: on
line diff
--- a/mercurial/manifest.c Thu Oct 13 13:14:14 2016 +0200 +++ b/mercurial/manifest.c Thu Oct 13 13:17:23 2016 +0200 @@ -262,8 +262,7 @@ #endif static PyTypeObject lazymanifestEntriesIterator = { - PyObject_HEAD_INIT(NULL) - 0, /*ob_size */ + PyVarObject_HEAD_INIT(NULL, 0) "parsers.lazymanifest.entriesiterator", /*tp_name */ sizeof(lmIter), /*tp_basicsize */ 0, /*tp_itemsize */ @@ -311,8 +310,7 @@ #endif static PyTypeObject lazymanifestKeysIterator = { - PyObject_HEAD_INIT(NULL) - 0, /*ob_size */ + PyVarObject_HEAD_INIT(NULL, 0) "parsers.lazymanifest.keysiterator", /*tp_name */ sizeof(lmIter), /*tp_basicsize */ 0, /*tp_itemsize */ @@ -890,8 +888,7 @@ #endif static PyTypeObject lazymanifestType = { - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ + PyVarObject_HEAD_INIT(NULL, 0) "parsers.lazymanifest", /* tp_name */ sizeof(lazymanifest), /* tp_basicsize */ 0, /* tp_itemsize */