Skip to content

Commit c6b65ad

Browse files
committed
pythongh-126925: Make PyConfig.use_system_logger read-only
The variable is only used once during early Python initialization, it doesn't make sense to modify it at runtime.
1 parent 7239da7 commit c6b65ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/initconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static const PyConfigSpec PYCONFIG_SPEC[] = {
169169
SPEC(use_frozen_modules, BOOL, READ_ONLY, NO_SYS),
170170
SPEC(use_hash_seed, BOOL, READ_ONLY, NO_SYS),
171171
#ifdef __APPLE__
172-
SPEC(use_system_logger, BOOL, PUBLIC, NO_SYS),
172+
SPEC(use_system_logger, BOOL, READ_ONLY, NO_SYS),
173173
#endif
174174
SPEC(user_site_directory, BOOL, READ_ONLY, NO_SYS), // sys.flags.no_user_site
175175
SPEC(warn_default_encoding, BOOL, READ_ONLY, NO_SYS),

0 commit comments

Comments
 (0)