# HG changeset patch # User Franz Glasner # Date 1641056732 -3600 # Node ID db2d108e14e79c341a87358cbaa38cdf09b98618 # Parent 491413368c7c1cc121bf3cea3bbc52237a3c62eb Type-check is implicitly done by other PyUnicode_NNN functions: skip the extra type-check diff -r 491413368c7c -r db2d108e14e7 configmix/_speedups.c --- a/configmix/_speedups.c Sat Jan 01 18:01:32 2022 +0100 +++ b/configmix/_speedups.c Sat Jan 01 18:05:32 2022 +0100 @@ -95,10 +95,6 @@ Py_ssize_t i; Py_UCS4 c; - if (!PyUnicode_Check(s)) { - PyErr_SetString(PyExc_TypeError, "a (unicode) string type is expected"); - return NULL; - } if (s_len < 0) { s_len = PyUnicode_GetLength(s); if (s_len < 0) {