Skip to content

Commit e1dfb0f

Browse files
Simplify _PyInterpreterConfig_Copy().
1 parent 8b2a84a commit e1dfb0f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Python/initconfig.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,15 +3037,7 @@ PyStatus
30373037
_PyInterpreterConfig_Copy(_PyInterpreterConfig *config,
30383038
const _PyInterpreterConfig *config2)
30393039
{
3040-
_PyInterpreterConfig_Clear(config);
3041-
3042-
#define COPY_ATTR(ATTR) config->ATTR = config2->ATTR
3043-
3044-
COPY_ATTR(allow_fork);
3045-
COPY_ATTR(allow_subprocess);
3046-
COPY_ATTR(allow_threading);
3047-
3048-
#undef COPY_ATTR
3040+
*config = *config2;
30493041

30503042
return _PyStatus_OK();
30513043
}

0 commit comments

Comments
 (0)