summaryrefslogtreecommitdiffstats
path: root/Python/preconfig.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-17 01:15:12 (GMT)
committerGitHub <noreply@github.com>2019-05-17 01:15:12 (GMT)
commit870b035bc6da96689b59dd6f79782ec6f1873617 (patch)
tree27cb244d3d66b133808ca5c04ec14f82d64f078c /Python/preconfig.c
parentaee19f54f6fe45f6b3c906987941e5a8af4468e9 (diff)
downloadcpython-870b035bc6da96689b59dd6f79782ec6f1873617.zip
cpython-870b035bc6da96689b59dd6f79782ec6f1873617.tar.gz
cpython-870b035bc6da96689b59dd6f79782ec6f1873617.tar.bz2
bpo-36763: Cleanup precmdline in _PyCoreConfig_Read() (GH-13371)
precmdline is only needed in _PyCoreConfig_Read(), not in config_read_cmdline(). Reorganize _PyCoreConfig_Read().
Diffstat (limited to 'Python/preconfig.c')
-rw-r--r--Python/preconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/preconfig.c b/Python/preconfig.c
index 48b9e83..2d0ace5 100644
--- a/Python/preconfig.c
+++ b/Python/preconfig.c
@@ -174,7 +174,7 @@ _PyPreCmdline_SetCoreConfig(const _PyPreCmdline *cmdline, _PyCoreConfig *config)
static _PyInitError
precmdline_parse_cmdline(_PyPreCmdline *cmdline)
{
- _PyWstrList *argv = &cmdline->argv;
+ const _PyWstrList *argv = &cmdline->argv;
_PyOS_ResetGetOpt();
/* Don't log parsing errors into stderr here: _PyCoreConfig_Read()