Skip to content

Commit 88aefc2

Browse files
committed
Don't deprecate tuple API of sys.getwindowsversion()
1 parent a8a9cfa commit 88aefc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4073,7 +4073,7 @@ _PySys_InitCore(PyThreadState *tstate, PyObject *sysdict)
40734073
#if defined(MS_WINDOWS)
40744074
/* getwindowsversion */
40754075
state->windows_version_type = _PyStructSequence_NewType(
4076-
&windows_version_desc, Py_TPFLAGS_DISALLOW_INSTANTIATION, 1);
4076+
&windows_version_desc, Py_TPFLAGS_DISALLOW_INSTANTIATION, 0);
40774077
if (state->windows_version_type == NULL) {
40784078
goto type_init_failed;
40794079
}

0 commit comments

Comments
 (0)