]> granicus.if.org Git - python/commit
bpo-32030: Make _PySys_AddXOptionWithError() private (GH-10236)
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Oct 2018 13:31:42 +0000 (14:31 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 13:31:42 +0000 (14:31 +0100)
commite1b29950bf751381538e3c8ea6a3e0a98d01dbfb
treef52d54f2efda4afd9a2fff1eb4330d7b0999ad8b
parent905f1ace5f7424e314ca7bed997868a2a3044839
bpo-32030: Make _PySys_AddXOptionWithError() private (GH-10236)

Make _PySys_AddXOptionWithError() and _PySys_AddWarnOptionWithError()
functions private again. They are no longer needed to initialize Python:
_PySys_EndInit() is now responsible to add these options instead.

Moreover, PySys_AddWarnOptionUnicode() now clears the exception on
failure if possible.
Include/sysmodule.h
Python/sysmodule.c