summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 99e6b5e..b09268b 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -985,10 +985,10 @@ sys_getwindowsversion(PyObject *self)
}
PyMem_RawFree(verblock);
}
- PyStructSequence_SET_ITEM(version, pos++, PyTuple_Pack(3,
- PyLong_FromLong(realMajor),
- PyLong_FromLong(realMinor),
- PyLong_FromLong(realBuild)
+ PyStructSequence_SET_ITEM(version, pos++, Py_BuildValue("(kkk)",
+ realMajor,
+ realMinor,
+ realBuild
));
if (PyErr_Occurred()) {