Mercurial > public > mercurial-scm > hg
diff mercurial/dirs.c @ 30167:1e5ff5ae1d2b
dirs: use PyVarObject_HEAD_INIT
This makes a compiler warning go away on Python 3.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 13 Oct 2016 13:14:14 +0200 |
parents | fb5504d7b2c9 |
children |
line wrap: on
line diff
--- a/mercurial/dirs.c Thu Oct 13 09:27:37 2016 +0100 +++ b/mercurial/dirs.c Thu Oct 13 13:14:14 2016 +0200 @@ -291,7 +291,7 @@ {NULL} /* Sentinel */ }; -static PyTypeObject dirsType = { PyObject_HEAD_INIT(NULL) }; +static PyTypeObject dirsType = { PyVarObject_HEAD_INIT(NULL, 0) }; void dirs_module_init(PyObject *mod) {