Skip to content

Commit 4e12b9e

Browse files
Remove unnecessary message
1 parent 3660160 commit 4e12b9e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Modules/_codecsmodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,6 @@ _codecs__normalize_encoding_impl(PyObject *module, PyObject *encoding)
10541054
}
10551055

10561056
if (!_Py_normalize_encoding(cstr, normalized, len + 1, 0)) {
1057-
PyErr_SetString(PyExc_RuntimeError, "_Py_normalize_encoding() failed");
10581057
PyMem_Free(normalized);
10591058
return NULL;
10601059
}
@@ -1064,7 +1063,6 @@ _codecs__normalize_encoding_impl(PyObject *module, PyObject *encoding)
10641063
return v;
10651064
}
10661065

1067-
10681066
/* --- Module API --------------------------------------------------------- */
10691067

10701068
static PyMethodDef _codecs_functions[] = {

0 commit comments

Comments
 (0)