Issue #29145: Merge 3.6.

This commit is contained in:
Xiang Zhang 2017-01-10 10:56:38 +08:00
commit 7a4da324dc
2 changed files with 9 additions and 7 deletions

View file

@ -261,7 +261,7 @@ stringlib_replace_interleave(PyObject *self,
assert(count > 0);
if (to_len > (PY_SSIZE_T_MAX - self_len) / count) {
PyErr_SetString(PyExc_OverflowError,
"replace bytes are too long");
"replace bytes is too long");
return NULL;
}
result_len = count * to_len + self_len;