diff --git a/Modules/_interpretersmodule.c b/Modules/_interpretersmodule.c index c444c4c32c71e3..efd37542f04641 100644 --- a/Modules/_interpretersmodule.c +++ b/Modules/_interpretersmodule.c @@ -330,8 +330,7 @@ get_code_str(PyObject *arg, Py_ssize_t *len_p, PyObject **bytes_p, int *flags_p) int flags = 0; if (PyUnicode_Check(arg)) { - assert(PyUnicode_Check(arg) - && (check_code_str((PyUnicodeObject *)arg) == NULL)); + assert(check_code_str((PyUnicodeObject *)arg) == NULL); codestr = PyUnicode_AsUTF8AndSize(arg, &len); if (codestr == NULL) { return NULL;