mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #29145: Merge 3.6.
This commit is contained in:
commit
7a4da324dc
2 changed files with 9 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue