From: Bartosz Sławecki Date: Thu, 13 Feb 2025 17:29:26 +0000 (+0100) Subject: Fix a typo in `_localemodule.c` (GH-130085) X-Git-Tag: v3.14.0a6~428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07f5e33f2eed50984d7a60b48bb3136d93a59dd6;p=thirdparty%2FPython%2Fcpython.git Fix a typo in `_localemodule.c` (GH-130085) --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 876627bcf5fa..ad618398d5b8 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);