Skip to content

Commit d664496

Browse files
Simplify _PyInterpreterConfig_Copy().
1 parent 50afb6d commit d664496

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
@@ -3193,15 +3193,7 @@ PyStatus
31933193
_PyInterpreterConfig_Copy(_PyInterpreterConfig *config,
31943194
const _PyInterpreterConfig *config2)
31953195
{
3196-
_PyInterpreterConfig_Clear(config);
3197-
3198-
#define COPY_ATTR(ATTR) config->ATTR = config2->ATTR
3199-
3200-
COPY_ATTR(allow_fork);
3201-
COPY_ATTR(allow_subprocess);
3202-
COPY_ATTR(allow_threading);
3203-
3204-
#undef COPY_ATTR
3196+
*config = *config2;
32053197

32063198
return _PyStatus_OK();
32073199
}

0 commit comments

Comments
 (0)