]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a typo in `_localemodule.c` (GH-130085)
authorBartosz Sławecki <bartoszpiotrslawecki@gmail.com>
Thu, 13 Feb 2025 17:29:26 +0000 (18:29 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2025 17:29:26 +0000 (17:29 +0000)
Modules/_localemodule.c

index 876627bcf5fad84accc491b099c8f5bf1cff475f..ad618398d5b824f3b4a7633b89ebaf0a73558ed3 100644 (file)
@@ -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);