[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
(cherry picked from commit db693df3e112c5a61f2cbef63eedce3a36520ded)
diff --git a/Python/initconfig.c b/Python/initconfig.c
index 27ae48d..b298611 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -2464,7 +2464,7 @@ warnoptions_append(PyConfig *config, PyWideStringList *options,
{
/* config_init_warnoptions() add existing config warnoptions at the end:
ensure that the new option is not already present in this list to
- prevent change the options order whne config_init_warnoptions() is
+ prevent change the options order when config_init_warnoptions() is
called twice. */
if (_PyWideStringList_Find(&config->warnoptions, option)) {
/* Already present: do nothing */