Skip to content

Commit 8b2a84a

Browse files
Use a shortcut for clearing the config.
1 parent 713bd1f commit 8b2a84a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/initconfig.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,9 +3029,7 @@ _Py_DumpPathConfig(PyThreadState *tstate)
30293029
void
30303030
_PyInterpreterConfig_Clear(_PyInterpreterConfig *config)
30313031
{
3032-
config->allow_fork = 0;
3033-
config->allow_subprocess = 0;
3034-
config->allow_threading = 0;
3032+
*config = (_PyInterpreterConfig){};
30353033
}
30363034

30373035

0 commit comments

Comments
 (0)