https://github.com/python/cpython/commit/07f5e33f2eed50984d7a60b48bb3136d93a59dd6
commit: 07f5e33f2eed50984d7a60b48bb3136d93a59dd6
branch: main
author: Bartosz SÅ‚awecki <[email protected]>
committer: encukou <[email protected]>
date: 2025-02-13T17:29:26Z
summary:

Fix a typo in `_localemodule.c` (GH-130085)

files:
M Modules/_localemodule.c

diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 876627bcf5fad8..ad618398d5b824 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -605,7 +605,7 @@ change_locale(int category, char **oldloc)
     /* Keep a copy of the LC_CTYPE locale */
     *oldloc = setlocale(LC_CTYPE, NULL);
     if (!*oldloc) {
-        PyErr_SetString(PyExc_RuntimeError, "faild to get LC_CTYPE locale");
+        PyErr_SetString(PyExc_RuntimeError, "failed to get LC_CTYPE locale");
         return -1;
     }
     *oldloc = _PyMem_Strdup(*oldloc);

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to