Skip to content
Snippets Groups Projects
Commit 8ce17460140a authored by Stefan Behnel's avatar Stefan Behnel
Browse files

Fix Python version test in utility code.

parent 6f86fdce0610
No related branches found
No related tags found
No related merge requests found
......@@ -1165,7 +1165,7 @@
margs = PyTuple_Pack(3, name, bases, dict);
if (likely(margs)) {
// Before PEP-487, type(a,b,c) did not accept any keyword arguments, so guard at least against that case.
PyObject *mc_kwargs = (PY_MAJOR_VERSION >= 0x030600A4) ? mkw : (
PyObject *mc_kwargs = (PY_VERSION_HEX >= 0x030600A4) ? mkw : (
(metaclass == (PyObject*)&PyType_Type) ? NULL : mkw);
result = PyObject_Call(metaclass, margs, mc_kwargs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment